forked from roman01la/react-a11y-video
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwebpack.config.js
37 lines (34 loc) · 1.07 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
var webpack = require('webpack');
const ADDRESS = '0.0.0.0';
const PORT = 3000;
module.exports = {
address: ADDRESS,
port: PORT,
devtool: 'source-map',
watch: true,
entry: [
'webpack-dev-server/client?http://' + ADDRESS + ':' + PORT,
'webpack/hot/only-dev-server',
__dirname + '/src/react-a11y-video.jsx',
__dirname + '/example/main.jsx'
],
module: {
loaders: [
{ test: /\.(jsx|es6)$/, exclude: /node_modules/, loaders: ['react-hot', '6to5-loader?optional=selfContained'] },
{ test: /\.scss$/, loaders: ['react-hot', 'style-loader', 'css-loader', 'autoprefixer-loader', 'sass-loader'] },
{ test: /\.svg$/, loaders: ['url-loader?limit=100000&mimetype=image/svg+xml'] }
]
},
output: {
path: __dirname + '/build',
filename: 'main.js',
publicPath: '/'
},
resolve: {
extensions: ['', '.js', '.jsx', '.es6', '.scss']
},
plugins: [
new webpack.HotModuleReplacementPlugin(),
new webpack.NoErrorsPlugin()
]
};