forked from osano/cookieconsent
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathwebpack.dev.js
More file actions
37 lines (35 loc) · 862 Bytes
/
webpack.dev.js
File metadata and controls
37 lines (35 loc) · 862 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
32
33
34
35
36
37
"use strict"
const join = require( "path" ).join
const merge = require('webpack-merge')
const common = require( "./webpack.common.js" )
// const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin
module.exports = merge(common, {
mode: "development",
devtool: "inline-source-map",
output: {
path: join( __dirname, 'src' ),
filename: 'bundle.js'
},
module: {
rules: [
{
test: /\.scss?$/,
use: [
"style-loader", // creates style nodes from JS strings
"css-loader", // translates CSS into CommonJS
{
loader: 'sass-loader',
options: {
implementation: require('sass')
}
},
"postcss-loader"
]
}
]
},
// plugins: [
// new BundleAnalyzerPlugin()
// ],
watch: true
})