forked from InfomediaLtd/angular2-materialize
-
Notifications
You must be signed in to change notification settings - Fork 0
/
webpack.config.js
36 lines (36 loc) · 1.12 KB
/
webpack.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
var webpack = require("webpack");
module.exports = {
entry: "./app/main.ts",
output: {
path: __dirname + "/webpack-dist",
filename: "bundle.js"
},
devtool: 'source-map',
resolve: {
alias: {
materializecss: 'materialize-css/dist/css/materialize.css',
materialize: 'materialize-css/dist/js/materialize.js',
},
extensions: ['', '.webpack.js', '.web.js', '.ts', '.js', '.css']
},
module: {
loaders: [
{
test: /materialize-css\/dist\/js\/materialize\.js/,
loader: 'imports?materializecss'
},
{ test: /\.ts$/, loader: 'ts-loader' },
{ test: /\.css$/, loader: 'style-loader!css-loader' },
{ test: /.(png|woff(2)?|eot|ttf|svg)(\?[a-z0-9=\.]+)?$/, loader: 'url-loader?limit=100000' }
]
},
noParse: [ /.+zone\.js\/dist\/.+/, /.+angular2\/bundles\/.+/ ],
plugins: [
new webpack.ProvidePlugin({
$: "jquery",
jQuery: "jquery",
"window.jQuery": "jquery",
Hammer: "hammerjs/hammer"
})
]
};