Skip to content
This repository was archived by the owner on Apr 8, 2020. It is now read-only.
This repository was archived by the owner on Apr 8, 2020. It is now read-only.

ExtractTextPlugin doesn't generate any file when the application is launched from Visual Studio and the isDevBuild variable is set to false in webpack.config.js #1229

@rskopal

Description

@rskopal

I use the React template and I would like to try to run my application in Visual Studio without HMR and without style-loader css to head injection. So I set the ASPNETCORE_ENVIRONMENT variable to Staging in the IIS Express and application debug configuration and set the isDevBuild const directly to false in the webpack.config.js. But when I launch the application from Visual Studio no dist/site.css file is generated. If I run the webpack command from command line, the site.css is generated correctly. The webpack.config.js is the same as in the React template except these lines:

  //const isDevBuild = !(env && env.prod);
  const isDevBuild = false;

Is there any problem with the ExtractTextPlugin when webpack build is run from Visual Studio?

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