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