-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwebpack.config.js
More file actions
39 lines (34 loc) · 822 Bytes
/
webpack.config.js
File metadata and controls
39 lines (34 loc) · 822 Bytes
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
var HTMLWebpackPlugin = require('html-webpack-plugin');
var JasmineWebpackPlugin = require('jasmine-webpack-plugin');
var ExtractTextPlugin = require("extract-text-webpack-plugin");
module.exports = {
entry: {
index: './src/index.js',
test: './test/runner.js'
},
output: {
path: 'dist',
filename: '[name].bundle.[hash].js'
},
module: {
loaders: [
{ test: /\.jade$/, loader: "jade-loader" },
{ test: /\.sass$/, loader: ExtractTextPlugin.extract("style-loader", "!css!sass!") }
]
},
node: {
fs: 'empty'
},
plugins: [
new HTMLWebpackPlugin ({
chunks: ['index'],
template: './src/index.html',
filename: 'index.html'
}),
new JasmineWebpackPlugin ({
chunks: ['test'],
filename: 'test.html'
}),
new ExtractTextPlugin("[name].bundle.[hash].css")
],
};