Skip to content

Create dev/index.html during development (using npm start -s) #588

@ohenrik

Description

@ohenrik

I'm about to go crazy due to this magic:


  output: {
    path: path.resolve(__dirname, 'dist'), // Note: Physical files are only output by the production build task `npm run build`.
    publicPath: '/',
    filename: 'bundle.js'
  },

More specifically this:
// Note: Physical files are only output by the production build task npm run build

So the question is, how do I make webpack create physical files in dev/? I need this to be able to serve my application through Flask (python) during development as well as production.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions