Skip to content

Instantly share code, notes, and snippets.

@evserykh
Created February 16, 2017 12:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save evserykh/cfca60710a7514369b8ba788b26a9888 to your computer and use it in GitHub Desktop.
Save evserykh/cfca60710a7514369b8ba788b26a9888 to your computer and use it in GitHub Desktop.
webpack.dev.config.js
var path = require('path');
var config = {
entry: path.join(__dirname, 'src/js/index.js'),
output: {
path: '/',
publicPath: 'http://localhost:3000/',
filename: 'bundle.js'
},
resolve: {
extensions: ['.js', '.jsx']
},
module: {
rules: [
{
test: /\.jsx?$/,
loader: 'babel-loader',
exclude: /node_modules/
}
]
},
devtool: 'inline-source-map'
};
module.exports = config;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment