-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathwebpack.dev.js
More file actions
29 lines (28 loc) · 754 Bytes
/
webpack.dev.js
File metadata and controls
29 lines (28 loc) · 754 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
const common = require('./webpack.common');
const merge = require('webpack-merge');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const autoprefixer = require('autoprefixer');
module.exports = merge(common, {
mode: 'development',
module: {
rules: [
{
test: /\.scss$/,
use: [
{ loader: 'style-loader' },
{ loader: 'css-loader' },
{
loader: 'postcss-loader',
options: {
plugins: () => [
autoprefixer({ overrideBrowserslist: ['> 1%', 'IE >= 10'] })
]
}
},
{ loader: 'sass-loader' }
]
}
]
},
plugins: [new HtmlWebpackPlugin({ template: './src/index.html' })]
});