forked from mmoyles87/react-esri-map
-
Notifications
You must be signed in to change notification settings - Fork 0
/
webpack.dev.config.js
38 lines (37 loc) · 1.21 KB
/
webpack.dev.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
const path = require("path");
const webpack = require("webpack");
module.exports = {
colors: true,
context: __dirname,
devtool: "#source-map",
entry: [
"babel-polyfill",
"./src/index.jsx"
],
devServer: {
colors: true,
inline: true,
progress: true
},
module: {
loaders: [
{ test: /\.jsx?$/, loaders: [ 'react-hot', 'babel', 'react-map-styles' ], include: path.join(__dirname, 'src') },
{ test: /\.less$/, loader: 'style!css!less' },
{ test: /\.scss$/, loaders: ['style', 'css', 'sass']},
{ test: /\.css$/, loader: 'style!css'},
{ test: /\.json?$/, loader: 'json-loader' },
{ test: /\.gif$/, loader: "url-loader?mimetype=image/png" },
{ test: /\.woff(2)?(\?v=[0-9].[0-9].[0-9])?$/, loader: "url-loader?mimetype=application/font-woff" },
{ test: /\.(ttf|eot|svg)(\?v=[0-9].[0-9].[0-9])?$/, loader: "file-loader?name=[name].[ext]" }
]
},
plugins: [
new webpack.optimize.OccurrenceOrderPlugin(),
new webpack.NoErrorsPlugin()
],
output: {
path: __dirname,
filename: "bundle.js",
publicPath: '/'
}
};