summaryrefslogtreecommitdiff
path: root/www/webpack.config.js
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2016-09-16 13:54:10 -0700
committerKali Kaneko (leap communications) <kali@leap.se>2016-09-22 11:39:47 -0400
commitae5a20d059209f2027c05820dc3b4cfe7346c8a8 (patch)
tree3ddc591e3d8b9fc9721c198bb83976b1d6705490 /www/webpack.config.js
parentbb82515bca6ff6e6b74718bf946faf3747e40002 (diff)
[pkg] fix www (aka bitmask_js) when run in "development mode"
this change allows you to edit the js and have the changes reflected immediately in the app.
Diffstat (limited to 'www/webpack.config.js')
-rw-r--r--www/webpack.config.js11
1 files changed, 9 insertions, 2 deletions
diff --git a/www/webpack.config.js b/www/webpack.config.js
index a29e5753..c0f8d191 100644
--- a/www/webpack.config.js
+++ b/www/webpack.config.js
@@ -6,7 +6,7 @@ var config = {
context: path.join(__dirname, 'app'),
entry: ['babel-polyfill', './main.js'],
output: {
- path: path.join(__dirname, 'public'),
+ path: path.join(__dirname, 'pydist', 'bitmask_js', 'public'),
filename: 'app.bundle.js'
},
resolve: {
@@ -41,7 +41,14 @@ var config = {
// https://webpack.github.io/docs/code-splitting.html
// new webpack.optimize.CommonChunkPlugin('common.js')
- // https://github.com/kevlened/copy-webpack-plugin
+ //
+ // ASSETS
+ //
+ // If you make changes to the asset files, you will need to stop then rerun
+ // `npm run watch` for the changes to take effect.
+ //
+ // For more information: https://github.com/kevlened/copy-webpack-plugin
+ //
new CopyWebpackPlugin([
{ from: 'css/*.css' },
{ from: 'img/*'},