Skip to content

Instantly share code, notes, and snippets.

@dphaener
Created January 13, 2016 03:46
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 dphaener/f5fc1153b5a64879466f to your computer and use it in GitHub Desktop.
Save dphaener/f5fc1153b5a64879466f to your computer and use it in GitHub Desktop.
var webpack = require('webpack');
module.exports = {
entry: {
'react-reading-time': [
'webpack-dev-server/client?http://localhost:8881/',
'webpack/hot/only-dev-server',
'./example/react-reading-time.jsx'
]
},
output: {
path: __dirname,
filename: "[name].js",
publicPath: 'http://localhost:8881/',
chunkFilename: '[id].chunk.js',
sourceMapFilename: '[name].map'
},
resolve: {
extensions: ['', '.js', '.jsx', '.es6'],
modulesDirectories: ['node_modules']
},
module: {
loaders: [
{ test: /\.jsx$|\.es6$|\.js$/, loaders: ['react-hot', 'babel-loader'], exclude: /node_modules/ },
{ test: /\.scss$|\.css$/, loader: 'style-loader!style!css!sass' }
]
},
plugins: [
new webpack.NoErrorsPlugin()
],
devtool: "eval-source-map"
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment