From ae5a20d059209f2027c05820dc3b4cfe7346c8a8 Mon Sep 17 00:00:00 2001 From: elijah Date: Fri, 16 Sep 2016 13:54:10 -0700 Subject: [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. --- www/webpack.config.js | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'www/webpack.config.js') diff --git a/www/webpack.config.js b/www/webpack.config.js index a29e575..c0f8d19 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/*'}, -- cgit v1.2.3