-
Notifications
You must be signed in to change notification settings - Fork 0
/
webpack.config.js
32 lines (30 loc) · 1.21 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
var path = require('path');
module.exports = {
entry: {
css: './src/less/index.js',
js: './src/js/index.js'
},
output: {
path: path.join(__dirname, 'dist'),
filename: '[name]/bundle.js'
},
devtool: 'source-map',
useMemoryFs: true,
progress: true,
module: {
loaders: [
{ test: /bootstrap\/js\//, loader: 'imports?jQuery=jquery' },
{ test: /\.ts$/ , loader: 'typescript-loader' },
{ test: /\.jade$/, loader: "react-jade-loader" },
{ test: /\.coffee$/, loader: "imports?cfx=coffeex!coffee" },
{ test: /\.woff(\?v=\d+\.\d+\.\d+|\d)?$/, loader: "url?name=fonts/[name].[ext]&limit=10000&minetype=application/font-woff" },
{ test: /\.woff2(\?v=\d+\.\d+\.\d+|\d)?$/, loader: "url?name=fonts/[name].[ext]&limit=10000&minetype=application/font-woff" },
{ test: /\.ttf(\?v=\d+\.\d+\.\d+)?$/, loader: "url?name=fonts/[name].[ext]&limit=10000&minetype=application/octet-stream" },
{ test: /\.eot(\?v=\d+\.\d+\.\d+)?$/, loader: "file?name=fonts/[name].[ext]" },
{ test: /\.svg(\?v=\d+\.\d+\.\d+)?$/, loader: "url?name=fonts/[name].[ext]&limit=10000&minetype=image/svg+xml" }
]
},
resolve: {
extensions: ['', '.js', '.ts']
}
};