-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathwebpack.config.js
39 lines (38 loc) · 1.08 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
37
38
39
var path = require('path');
var webpack = require('webpack');
var ExtractTextPlugin = require('extract-text-webpack-plugin');
module.exports = {
entry: path.join(__dirname, 'tailsocket/static/src/main.js'),
output: {
path: path.join(__dirname, 'tailsocket/static/bin'),
filename: 'tailsocket.bundle.js',
publicPath: '/static/bin/'
},
module: {
loaders: [{
test: /\.jsx?$/,
exclude: /node_modules/,
loader: 'babel-loader',
query: {
presets: ['es2015', 'react']
}
}, {
test: /\.scss$/,
loader: ExtractTextPlugin.extract('css!sass')
}, {
test:/bootstrap-sass[\/\\]assets[\/\\]javascripts[\/\\]/,
loader: 'imports?jQuery=jquery'
}, {
test: /\.(woff2?|svg)$/,
loader: 'url?limit=10000'
}, {
test: /\.(ttf|eot)$/,
loader: 'file'
}]
},
plugins: [
new ExtractTextPlugin('style.css', {
allChunks: true
})
]
};