Skip to content

Issue with bootstrapping #1

Description

@tylercollier

#1. Output path

I'm thinking the example config file is misleading. It says to put it in config/webpack.js, but then shows this:

module.exports.webpack = {
  options: {
    ...
    output: {
      path: path.resolve(__dirname, '.tmp/public/js'),
...

Won't that make the output path config/.tmp/public/js? It does for me. To fix, I changed the second argument to path.resolve to be ../.tmp/public/js.
#2. Loading webpacked assets

There's no mention of it, but shouldn't we put something like the following in the layout.ejs?

<script src="/js/bundle.js"></script>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions