-
Notifications
You must be signed in to change notification settings - Fork 2
/
webpack.dev.cjs
44 lines (42 loc) · 1.12 KB
/
webpack.dev.cjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
const { merge } = require("webpack-merge"),
webpack = require("webpack"),
common = require("./webpack.com.cjs");
module.exports = merge(common, {
mode: "development",
plugins: [
new webpack.DefinePlugin({
__API_BASE_URL__: JSON.stringify("http://api.martspec.com/"),
__MAINTENANCE_MODE__: false,
__IN_DEBUG__: JSON.stringify("Merhn"),
}),
],
devtool: "eval-source-map",
devServer: {
port: 3000,
allowedHosts: "all",
open: {
app: {
name: "google-chrome",
},
},
historyApiFallback: true,
},
module: {
rules: [
{
test: /\.s[ac]ss$/i,
use: [
"style-loader",
"css-loader",
{
loader: "sass-loader",
options: {
// Prefer `dart-sass`
implementation: require("sass"),
},
},
],
},
],
},
});