-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwebpack.config.js
42 lines (40 loc) · 1.18 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
40
41
42
const path = require('path');
const webpack = require('webpack');
const HtmlWebpackPlugin = require('html-webpack-plugin');
module.exports = {
devtool: 'cheap-module-eval-source-map',
/*entry: {
app: [
'webpack/hot/dev-server',
'webpack-hot-middleware/client?reload=true',
path.join(__dirname, "webclient", "clientapp.jsx")]
},
output: {
path: path.join(__dirname, "webclient", "dist"),
publicPath: "/dist/",
filename: "bundle.js"
},
module: {
loaders: [{
test: /\.jsx$/,
loaders: [
'react-hot','babel?presets[]=react,presets[]=es2015,presets[]=stage-1'
]
},
{
test: /\.css$/,
loader:"style-loader!css-loader",
include: [/flexboxgrid/,/react-select/]
}]
},
watch:true,
resolve: {
extensions: ['', '.js', '.jsx', '/index.js', '/index.jsx']
},*/
plugins: [
new webpack.optimize.OccurenceOrderPlugin(),
new webpack.HotModuleReplacementPlugin(),
new webpack.NoErrorsPlugin(),
// new HtmlWebpackPlugin({ template: path.resolve('./webclient/index.html') })
]
};