forked from weyj4/sails-webpack
-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Description
#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
Labels
No labels