aboutsummaryrefslogtreecommitdiffstats
path: root/webpack.config.js
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2021-10-30 22:44:55 +0200
committerArmand Philippot <git@armandphilippot.com>2021-10-30 23:09:33 +0200
commit815b190d28cc42e6f3d44d04e1f1ebaea9208cf6 (patch)
tree0d3f0133a39a4a796e698d360dc32f54fb41d8ad /webpack.config.js
parent3a3baddad1c801d77dc398d2c6980f3c14f4a47c (diff)
chore: convert html files to php
Now I can use php to determine current env and load static CSS file if it is prod.
Diffstat (limited to 'webpack.config.js')
-rw-r--r--webpack.config.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/webpack.config.js b/webpack.config.js
index 44379a1..734cc5a 100644
--- a/webpack.config.js
+++ b/webpack.config.js
@@ -1,9 +1,9 @@
-const { merge } = require("webpack-merge");
-const common = require("./config/webpack.common");
-const dev = require("./config/webpack.dev");
-const prod = require("./config/webpack.prod");
+const { merge } = require('webpack-merge');
+const common = require('./config/webpack/webpack.common');
+const dev = require('./config/webpack/webpack.dev');
+const prod = require('./config/webpack/webpack.prod');
-const isProduction = process.env.NODE_ENV === "production";
+const isProduction = process.env.NODE_ENV === 'production';
module.exports = () => {
if (isProduction) return merge(common, prod);