Skip to content

Instantly share code, notes, and snippets.

@linuxandchill
Last active June 15, 2016 19:39
Show Gist options
  • Select an option

  • Save linuxandchill/9270c0a24ceb783596052cf381331332 to your computer and use it in GitHub Desktop.

Select an option

Save linuxandchill/9270c0a24ceb783596052cf381331332 to your computer and use it in GitHub Desktop.

Revisions

  1. currencykid revised this gist Jun 15, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion webpack.config.js
    Original file line number Diff line number Diff line change
    @@ -19,7 +19,7 @@ module.exports = {
    module: {
    loaders: [{
    exclude: /node_modules/,
    loaders: ['react-hot', 'babel?presets[]=react,presets[]=es2015'],
    loaders: ['react-hot', 'babel?presets[]=react,presets[]=es2015,presets[]=stage-1'],
    }]
    },
    resolve: {
  2. currencykid created this gist Jun 15, 2016.
    32 changes: 32 additions & 0 deletions webpack.config.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,32 @@
    var webpack = require('webpack');
    var path = require('path');

    module.exports = {
    entry: [
    'webpack-dev-server/client?http://127.0.0.1:8080/',
    'webpack/hot/only-dev-server',
    './src/index.js'
    ],
    output: {
    path: __dirname,
    publicPath: '/',
    filename: 'bundle.js'
    },
    plugins: [
    new webpack.HotModuleReplacementPlugin(),
    new webpack.NoErrorsPlugin()
    ],
    module: {
    loaders: [{
    exclude: /node_modules/,
    loaders: ['react-hot', 'babel?presets[]=react,presets[]=es2015'],
    }]
    },
    resolve: {
    extensions: ['', '.js', '.jsx']
    },
    devServer: {
    historyApiFallback: true,
    contentBase: './'
    }
    };