Created
February 16, 2017 12:25
-
-
Save evserykh/cfca60710a7514369b8ba788b26a9888 to your computer and use it in GitHub Desktop.
webpack.dev.config.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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