-
Notifications
You must be signed in to change notification settings - Fork 1
/
webpack.config.js
35 lines (34 loc) · 986 Bytes
/
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
var HtmlWebpackPlugin = require('html-webpack-plugin');
module.exports = {
entry: [
'./src/entry.js',
'file?name=bootprint.html!./bootprint-sample/html/index.html',
'!file?name=main.css!./bootprint-sample/html/main.css'
],
resolve: {
root: __dirname,
},
output: {
path: './build',
filename: 'bundle.js'
},
module: {
loaders: [
{test: /\.jade$/, loader: 'apply-loader!jade-loader'},
{test: /\.css$/, loader: 'style!css'},
{test: /\.(jpe?g|png|gif|svg)$/i, loader:'file'},
{test: /\.eot(\?v=\d+\.\d+\.\d+)?$/, loader: 'file'},
{test: /\.svg(\?v=\d+\.\d+\.\d+)?$/, loader: 'file'},
{test: /\.ttf(\?v=\d+\.\d+\.\d+)?$/, loader: 'file'},
{test: /\.woff(\?v=\d+\.\d+\.\d+)?$/, loader: 'file'},
{test: /\.woff2(\?v=\d+\.\d+\.\d+)?$/, loader: 'file'},
]
},
plugins: [
new HtmlWebpackPlugin({
filename: 'index.html',
inject: true,
template: 'src/index.jade',
}),
]
};