-
Notifications
You must be signed in to change notification settings - Fork 1
/
rules.js
42 lines (40 loc) · 1.03 KB
/
rules.js
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
40
41
42
var path = require('path');
var sassLoaders = [
'css-loader',
'sass-loader?indentedSyntax=sass&includePaths[]=' + path.resolve(__dirname, './src')
]
module.exports = [
{
test: /\.ts(x?)$/,
loader: 'ts-loader?logInfoToStdOut=false&silent=true'
},
{
test: /\.css$/,
loader: 'style-loader!css-loader'
},
{
test: /\.scss$/,
loader: 'style-loader!css-loader!sass-loader'
},
{
test: /\.html$/,
exclude: /node_modules/,
loader: 'raw-loader'
},
{
test: /\.woff(2)?(\?v=[0-9]\.[0-9]\.[0-9])?$/,
loader: 'url-loader?limit=10000&mimetype=application/font-woff'
},
{
test: /\.(ttf|eot|svg|gif)(\?v=[0-9]\.[0-9]\.[0-9])?$/,
loader: 'file-loader'
},
{
test: /\.(png|jpg|gif|swf)$/,
loader: 'file-loader?name=[name].[ext]'
},
{
test: /masonry|imagesloaded|fizzy\-ui\-utils|desandro\-|outlayer|get\-size|doc\-ready|eventie|eventemitter/,
loader: 'imports-loader?define=>false&this=>window'
}
];