From 815b190d28cc42e6f3d44d04e1f1ebaea9208cf6 Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Sat, 30 Oct 2021 22:44:55 +0200 Subject: chore: convert html files to php Now I can use php to determine current env and load static CSS file if it is prod. --- webpack.config.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'webpack.config.js') 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); -- cgit v1.2.3