-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwebpack.dev.js
More file actions
31 lines (27 loc) · 751 Bytes
/
webpack.dev.js
File metadata and controls
31 lines (27 loc) · 751 Bytes
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
const webpack = require('webpack');
const merge = require('webpack-merge');
const path = require("path");
const common = require('./webpack.config.js');
module.exports = merge(common, {
module: {
rules: [{
test: /\.scss$/,
use: [
"style-loader", // creates style nodes from JS strings
"css-loader", // translates CSS into CommonJS
"sass-loader" // compiles Sass to CSS
]
}]
},
devServer: {
contentBase: path.join(__dirname, "public"),
port: 3210,
publicPath: "http://localhost:3210/dist"
},
// devtool: 'inline-source-map',
devtool: 'eval-cheap-module-source-map',
mode: 'development',
plugins: [
new webpack.HotModuleReplacementPlugin(),
]
});