forked from pauljnoble/css-3d-football
-
Notifications
You must be signed in to change notification settings - Fork 0
/
webpack.config.js
34 lines (33 loc) · 979 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
var webpack = require('webpack');
var path = require('path');
var buildPath = path.resolve(__dirname, './', 'build');
var CopyWebpackPlugin = require('copy-webpack-plugin');
var ExtractTextPlugin = require("extract-text-webpack-plugin");
module.exports = {
entry: ['./js/index.js'],
output: {
path: buildPath,
filename: 'js/bundle.js',
publicPath: '/'
},
module: {
loaders: [
{
test: /\.styl$/,
loader: ExtractTextPlugin.extract("style-loader", "css-loader!stylus-loader")
}
]
},
plugins: [
new webpack.ProvidePlugin({
$: "jquery",
jQuery: "jquery",
"window.jQuery": "jquery"
}),
new CopyWebpackPlugin([
{ from: './assets/**/*', to: buildPath },
{ from: './index.html', to: buildPath + '/index.html' }
]),
new ExtractTextPlugin("css/[name].css")
]
};