Fixed webpack configuration JS style.
This commit is contained in:
parent
a6a5f75b82
commit
0ad9dd9008
@ -10,7 +10,7 @@ export default {
|
||||
},
|
||||
{
|
||||
test: /\.css$/i,
|
||||
use: ['style-loader', 'css-loader'],
|
||||
use: ["style-loader", "css-loader"],
|
||||
}
|
||||
]
|
||||
},
|
||||
|
@ -1,13 +1,13 @@
|
||||
import merge from "webpack-merge";
|
||||
import webpackCommon from "./webpack.common";
|
||||
|
||||
devConfig = {
|
||||
const devConfig = {
|
||||
mode: "development",
|
||||
devtools: "inline-source-map",
|
||||
|
||||
devServer: {
|
||||
static: "./dist"
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
export default merge(webpackCommon, devConfig);
|
@ -1,12 +1,12 @@
|
||||
import merge from "webpack-merge"
|
||||
import webpackCommon from "./webpack.common"
|
||||
import merge from "webpack-merge";
|
||||
import webpackCommon from "./webpack.common";
|
||||
|
||||
prodConfig = {
|
||||
const prodConfig = {
|
||||
mode: "production",
|
||||
output: {
|
||||
filename: "[name].js",
|
||||
path: "./public"
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
export default merge(webpackCommon, prodConfig);
|
Loading…
Reference in New Issue
Block a user