-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwebpack.config.dev.js
More file actions
32 lines (31 loc) · 872 Bytes
/
Copy pathwebpack.config.dev.js
File metadata and controls
32 lines (31 loc) · 872 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
32
var path = require('path');
var webpack = require('webpack');
var publicDevServer = 'http://localhost:3010/';
module.exports = {
devtool: 'cheap-module-eval-source-map',
entry: [
'eventsource-polyfill', // necessary for hot reloading with IE
'webpack-hot-middleware/client?path=' + publicDevServer + '__webpack_hmr',
'./app/assets/javascripts/application'
],
output: {
path: path.join(__dirname, 'dist'),
filename: 'application.js',
publicPath: publicDevServer
},
plugins: [
new webpack.HotModuleReplacementPlugin(),
new webpack.NoErrorsPlugin()
],
resolve: {
modulesDirectories: ['node_modules', 'app/assets/javascripts'],
extensions: ['', '.js', '.jsx']
},
module: {
loaders: [{
test: /\.jsx?/,
loaders: ['babel'],
include: path.join(__dirname, './app/assets/javascripts')
}]
}
};