Midwest Dev Chat

MidwestDevChat.com github.com/skidvis/Midwest-Dev-Chat

  • The newest 15 messages in the super-cool #webpack channel.

  • 06/07 10:19:48 Chet: Oh Webpack master @Elisa, have a conundrum for you. I have this script in my package.json: `"start": "webpack-dev-server --hot --history-api-fallback --open",` and it works beautifully.
    I’m trying to move it over to my webpack config, so I have this object:

    devServer: {
    
    historyApiFallback: true,
    hot: true,
    open: true,
    },

  • 06/07 10:20:01 Chet: It does not work

  • 06/07 10:20:06 Chet: why is dis?

  • 06/07 10:21:01 Chet: When using the above object, my script then becomes this: `"start": "webpack-dev-server",`

  • 06/07 10:47:06 Elisa: lol

  • 06/07 10:47:31 Elisa: --hot works a little differently I think when you use it in the config

  • 06/07 10:47:47 Elisa: I believe you need to also add to your webpack config `new webpack.HotModuleReplacementPlugin()`

  • 06/07 10:48:40 Elisa: https://webpack.js.org/api/hot-module-replacement/ We wrote some new phresh and fancy HMR docs

  • 06/07 10:48:44 Elisa: thats the api

  • 06/07 10:48:54 Elisa: but I believe the linked concepts and configuration pages are new and updated also

  • 06/07 11:08:22 Chet: Gotcha, will look into it. Thank you!!!

  • 06/21 17:19:18 Chet: Hopped on Webpack 3 just now moving over from Webpack 2. Was seamless. Thanks for your awesome work @Elisa!!!!!!

  • 06/21 17:32:05 Elisa: No problem!!!!

  • 06/22 10:55:41 Kristie: has joined the channel

  • *Usernames have been changed to protect the innocent.

Check out all the cool channels!

Join the conversation!