-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathwebpack.config.js
More file actions
37 lines (32 loc) · 887 Bytes
/
webpack.config.js
File metadata and controls
37 lines (32 loc) · 887 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
module.exports = {
mode: "development",
resolve: {
extensions: ['.scss', '.es6.js', '.js', '']
},
entry: __dirname + '/app/scripts/core/main.es6.js',
output: {
path: __dirname + '/app/dist/',
filename: 'bundle.js'
},
// http://webpack.github.io/docs/configuration.html#devtool
// devtool: "#cheap-module-source-map",
module: {
rules: [
{
test: /\.es6.js$/,
exclude: /node_modules/,
loader: 'babel-loader'
},
{
test: /\.scss$/,
exclude: /node_modules/,
use: ["style-loader", "css-loader", "sass-loader"]
},
{
test: /\.(htm|html)$/,
exclude: /node_modules/,
loader: 'raw-loader'
}
]
}
};