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 #471

Closed
opened 2025-08-09 17:16:25 +00:00 by fergalmoran · 0 comments
Owner

Originally created by @rskopal on 8/25/2017

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?

*Originally created by @rskopal on 8/25/2017* 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?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/JavaScriptServices#471
No description provided.