Skip to content

Typo & suggestion for production webpack config #13

@dopeboy

Description

@dopeboy

Hi again,

  1. In the blog post here, at the very bottom under the webpack.prod.config.js section, the following edit should be made:

config.output.pathName => config.output.publicPath

  1. This is more of a suggestion but it wasn't obvious to me what I had to do to remove the hot loader from the production webpack config. Perhaps a line like so

config.entry = ['./assets/js/index']

might be helpful. That way, regardless of whether people are hot loading or not in their development webpack config, their production config won't contain it.

Just want to reiterate a big thank you to @owais. Your guide and plugin have been tremendously useful.

Manish

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions