-
Notifications
You must be signed in to change notification settings - Fork 18
/
webpack.config.js
34 lines (32 loc) · 867 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
webpack = require("webpack");
HtmlWebpackPlugin = require("html-webpack-plugin");
// IS_PRODUCTION = "production" === process.env.NODE_ENV;
webpackConfig = module.exports = {
entry: ['./js/app', 'webpack/hot/dev-server'],
// devtool: 'source-map',
resolve: {
alias: {
"howler": "./../vendor/howler.min.js"
},
modulesDirectories: [ 'node_modules' ]
},
output: {
path: '',
publicPath: './',
filename: 'bundle.js'
},
module: {
loaders: [
{ test: /\.scss$/, loader: "style!css!sass" },
// { test: /\.js(x?)$/, loaders: ['react-hot-loader', 'jsx-loader?harmony'] },
{ test: /\.js(x?)$/, loaders: ['jsx-loader?harmony'] }
]
},
plugins: [
// new webpack.HotModuleReplacementPlugin(),
new HtmlWebpackPlugin({
template: 'index-template.html',
filename: 'index.html'
})
]
};