UNPKG

react-quick-start

Version:
40 lines (38 loc) 817 B
var path = require('path'); var webpack = require('webpack'); var ExtractTextPlugin = require('extract-text-webpack-plugin'); module.exports = { devtool: 'eval', entry: [ 'webpack-hot-middleware/client', './src/index.js' ], output: { path: path.join(__dirname, 'dist'), filename: 'bundle.js', publicPath: '/static/' }, plugins: [ new webpack.HotModuleReplacementPlugin(), new webpack.NoErrorsPlugin() ], module: { loaders: [ { test: /\.js$/, loaders: ['babel'], include: path.join(__dirname, 'src') }, { test: /\.scss$/, loaders: ['style', 'css', 'sass'] } ] }, resolve: { extensions: ['', '.js', '.jsx'], alias: { components: path.resolve(__dirname, 'src/components') } } };