-
Notifications
You must be signed in to change notification settings - Fork 0
/
webpack.dev_config.js
49 lines (41 loc) · 1.13 KB
/
webpack.dev_config.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
43
44
45
46
47
48
49
'use strict';
const webpack = require('webpack');
const autoprefixer = require('autoprefixer');
module.exports = {
entry: {
'vendor': './src/vendor.ts',
'bootstrap': './src/bootstrap.ts',
'bootstrap-style': 'bootstrap-loader'
},
output: {
path: __dirname + '/src/dist',
filename: '[name].bundle.js',
},
resolve: {
extensions: ['', '.webpack.js', '.web.js', '.ts', '.tsx', '.js']
},
module: {
loaders: [
{ test: /\.tsx?$/, loader: 'ts-loader', exclude: ['node_modules/rxjs'] },
{ test: /\.css$/, loaders: [ 'style', 'css', 'postcss' ] },
{ test: /\.scss$/, loaders: [ 'style', 'css', 'postcss', 'sass' ] },
{ test: /\.(woff2?|ttf|eot|svg)$/, loader: 'url?limit=10000' },
{ test: /bootstrap\/dist\/js\/umd\//, loader: 'imports?jQuery=jquery' },
],
noParse: [ /zone\.js\/dist\/.+/, /angular2\/bundles\/.+/ ]
},
postcss: [ autoprefixer ],
node: {
global: 'window',
progress: false,
crypto: 'empty',
module: false,
clearImmediate: false,
setImmediate: false
},
watch: true,
watchOptions: {
poll: 100,
aggregateTimeout: 100
},
};