-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwebpack.config.js
More file actions
31 lines (30 loc) · 1016 Bytes
/
webpack.config.js
File metadata and controls
31 lines (30 loc) · 1016 Bytes
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
var BrowserSyncPlugin = require('browser-sync-webpack-plugin');
module.exports = {
entry: "./js/src/entry.jsx",
output: {
path: __dirname + '/js' ,
filename: "main.js"
},
module: {
loaders: [
{ test: /\.(css)$/, loader: "style!css" },
{ test: /\.(scss)$/, loaders: ["style", "css", "sass"] },
{ test: /\.woff(2)?(\?v=[0-9]\.[0-9]\.[0-9])?$/, loader: "url-loader?limit=10000&minetype=application/font-woff" },
{ test: /\.(ttf|eot|svg)(\?v=[0-9]\.[0-9]\.[0-9])?$/, loader: "file-loader" },
{
test: /\.jsx?$/,
exclude: /(node_modules|bower_components)/,
loader: 'babel', // 'babel-loader' is also a legal name to reference
query: {
presets: ['es2015', 'react']
}
}
]
},
plugins: [
new BrowserSyncPlugin({
proxy: 'webpack.dev',
port: 3000
})
]
};