aboutsummaryrefslogtreecommitdiffstats
path: root/packages/dev-tools-pages/webpack.config.js
diff options
context:
space:
mode:
Diffstat (limited to 'packages/dev-tools-pages/webpack.config.js')
-rw-r--r--packages/dev-tools-pages/webpack.config.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/packages/dev-tools-pages/webpack.config.js b/packages/dev-tools-pages/webpack.config.js
index ef2f98cf2..ae70fd83e 100644
--- a/packages/dev-tools-pages/webpack.config.js
+++ b/packages/dev-tools-pages/webpack.config.js
@@ -82,7 +82,10 @@ const config = {
module.exports = (_env, argv) => {
let plugins = [
new CleanWebpackPlugin('public'),
- ...pages.map(p => new HtmlWebpackPlugin(p)),
+ ...pages.map(p => {
+ p.environment = argv.mode;
+ return new HtmlWebpackPlugin(p);
+ }),
new CopyWebpackPlugin([
{ from: 'assets/crawl.html', to: 'index.html' },
{ from: 'assets/fonts', to: 'fonts' },