forked from osano/cookieconsent
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathwebpack.common.js
More file actions
29 lines (28 loc) · 759 Bytes
/
webpack.common.js
File metadata and controls
29 lines (28 loc) · 759 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
"use strict"
const join = require( "path" ).join
const common = require( "./webpack.common.js" )
const exp = Object.assign({}, common, {
entry: join( __dirname, 'src', 'index.js' ),
module: {
rules: [
{
test : /\.js?$/,
loader : "babel-loader",
options: {
root : __dirname,
rootMode: "upward-optional"
}
},
{
test: /\.scss?$/,
use : [
"style-loader", // creates style nodes from JS strings
"css-loader", // translates CSS into CommonJS
"sass-loader", // compiles Sass to CSS, using Node Sass by default
"postcss-loader"
]
}
]
}
})
module.exports = exp