first commit
This commit is contained in:
17
themes/ayon__/_dev/webpack.config.js
Normal file
17
themes/ayon__/_dev/webpack.config.js
Normal file
@@ -0,0 +1,17 @@
|
||||
const merge = require("webpack-merge");
|
||||
const { addHotMiddleware, DEV } = require("./_webpack/util.js");
|
||||
|
||||
let webpackConfig = require("./_webpack/webpack.default.js");
|
||||
|
||||
if (DEV) {
|
||||
webpackConfig = merge(
|
||||
Array.of(webpackConfig, require("./_webpack/webpack.development.js"))
|
||||
);
|
||||
webpackConfig.entry = addHotMiddleware(webpackConfig.entry);
|
||||
} else {
|
||||
webpackConfig = merge(
|
||||
Array.of(webpackConfig, require("./_webpack/webpack.production.js"))
|
||||
);
|
||||
}
|
||||
|
||||
module.exports = webpackConfig;
|
||||
Reference in New Issue
Block a user