From d9b01a6b2f3bb79b36173f67d3f7f07fb4e58953 Mon Sep 17 00:00:00 2001 From: Slava Bacherikov Date: Wed, 31 Jan 2018 19:36:12 +0200 Subject: [PATCH] Move all distribution assets to separate folder --- html/index.html | 2 +- webpack.config.js | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/html/index.html b/html/index.html index 9e48c49..2fc6b06 100644 --- a/html/index.html +++ b/html/index.html @@ -8,7 +8,7 @@ - + diff --git a/webpack.config.js b/webpack.config.js index 29096c0..9f163d1 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -24,7 +24,10 @@ function makeClosureCompiler() { var plugins = [ new CleanWebpackPlugin(['dist']), new CopyWebpackPlugin([ - { from: 'assets/bootstrap.min.css'} + { + from: 'assets/bootstrap.min.css', + to: 'assets/' + } ]), new HtmlWebpackPlugin({ minify: { @@ -45,7 +48,7 @@ if (process.env.PRODUCTION) { module.exports = { entry: "./src/ui.ts", output: { - filename: "bundle.[hash].js", + filename: "assets/bundle.[hash].js", path: path.join(__dirname, "dist") }, plugins: plugins,