-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwebpack.config.dev.js
More file actions
47 lines (46 loc) · 1.12 KB
/
webpack.config.dev.js
File metadata and controls
47 lines (46 loc) · 1.12 KB
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
45
46
47
const pather = require('path');
const { merge } = require('webpack-merge');
const common = require('./webpack.common.js');
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
module.exports = merge(common, {
mode: 'development',
devtool: 'inline-source-map',
output: {
path: pather.resolve(__dirname, 'dist'),
filename: 'app.js',
},
//Put webpack dev-server in "quiet" mode so the eleventy dev-sever can do the heavy lifting
devServer: {
port: 8081,
hot: false,
liveReload: false,
devMiddleware: {
writeToDisk: true
}
},
plugins: [
new MiniCssExtractPlugin({
filename: '[name].css'
}),
],
module: {
rules: [
{
test: /\.s[ac]ss$/i, // Matches .sass and .scss files
use: [
MiniCssExtractPlugin.loader,
'css-loader',
{
loader: "sass-loader",
options: {
sassOptions: {
quietDeps: true, // Silences warnings from node_modules
silenceDeprecations: ['import']
},
},
},
],
},
],
},
});