diff options
Diffstat (limited to 'playgrounds/webpack.config.js')
-rw-r--r-- | playgrounds/webpack.config.js | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/playgrounds/webpack.config.js b/playgrounds/webpack.config.js index 87a304a..c0e7233 100644 --- a/playgrounds/webpack.config.js +++ b/playgrounds/webpack.config.js @@ -1,33 +1,28 @@ var path = require('path') module.exports = function (env) { - let currentTest = path.resolve(__dirname, env) return { - mode: 'development', devtool: 'eval-source-map', devServer: { - contentBase: [ currentTest, __dirname ], + contentBase: [currentTest, __dirname] }, devServer: { - contentBase: [currentTest, '..'], + contentBase: [currentTest, '..'] }, entry: { - app: path.resolve(currentTest, "main.js"), + app: path.resolve(currentTest, 'main.js') }, output: { path: currentTest, - filename: 'bundle.js', + filename: 'bundle.js' }, resolve: { - modules: [ - path.resolve(__dirname, "node_modules"), - "node_modules" - ] + modules: [path.resolve(__dirname, 'node_modules'), 'node_modules'] } } } |