forked from neonexus/sails-react-bootstrap-webpack
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdev.config.js
More file actions
39 lines (38 loc) · 1.12 KB
/
Copy pathdev.config.js
File metadata and controls
39 lines (38 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
const mergeThem = require('webpack-merge');
const baseConfig = require('./common.config.js');
const path = require('path');
module.exports = mergeThem(baseConfig, {
devServer: {
historyApiFallback: true,
contentBase: path.join(__dirname, '../../assets')
},
module: {
rules: [
{
test: /\.s?[ac]ss$/i,
use: [
{
loader: 'style-loader',
options: {
// injectType: 'singletonStyleTag'
}
},
// Translates CSS into CommonJS
{
loader: 'css-loader',
options: {
sourceMap: true
}
},
// Compiles Sass to CSS
{
loader: 'sass-loader',
options: {
sourceMap: true
}
}
]
}
]
}
});