Questions tagged [extracttextwebpackplugin]
76 questions
1
vote
1 answer
Webpack not building after npm upgrade
I had a minor issue with my React test scripts and I ended up upgrading my npm with following command
npm upgrade -g
I think this not only upgraded npm ( to 5.3.0) but also webpack ( to 3.4.1), extract-text-webpack-plugin ( to 3.0.0), and every…

Sanjeev Dalvi
- 41
- 1
- 6
1
vote
1 answer
Webpack error "Chunk.entry was removed. Use hasRuntime()" on Heroku
I'm getting a build error when running webpack in trying to deploy a project to Heroku (and only then):
remote: ERROR in chunk webpackManifest [entry]
remote: js/[name]-[chunkhash].js
remote: Chunk.entry was…

Turner Hayes
- 1,844
- 4
- 24
- 38
1
vote
1 answer
Extracting a javascript file from webpack build
I am using webpack for a project where I need to have a javascript config file as part of the built files, but I cannot figure out how to do that.
So I need to have these files in the output:
index.html
app.js
config.js
I figure I need to either:…

Joachim Bøggild
- 614
- 5
- 15
1
vote
1 answer
imported styles not loaded with ExtractTextPlugin
my styles are not loading when I use the following syntax
import '../styles/some-component.scss';
but they will load when I use modules like so (which makes sense that they should since I have the css-loader modules option set to true):
import…

Jordan
- 5,085
- 7
- 34
- 50
1
vote
2 answers
extract-text-webpack-plugin not creating a stylesheet
I am using webpack and sass-loader to generate a custom.css file in my public directory. My webpack.config file has the following:
// webpack.config.js
var ExtractTextPlugin = require("extract-text-webpack-plugin");
...
if(process.env.NODE_ENV ===…

HGB
- 2,157
- 8
- 43
- 74
1
vote
3 answers
Unable to extract CSS from scss with ExtractTextPlugin webpack
I have following configurations in my webpack.config.js and package.json respectively:
var extractSCSS = new ExtractTextPlugin({filename: '[name].css', disable: false, allChunks: true});
module: {
loaders: [
{
test:…

me_digvijay
- 5,374
- 9
- 46
- 83
0
votes
0 answers
Extract plain text from a LINK
Solution: I used PYTHON and retrieved the text using SELENIUM, since I had to login and it was easier using automated chrome. Thanks!
I've a web URL which returns a plain text.
The URL Looks like…

Lito
- 13
- 2
0
votes
0 answers
webpack not getting seperate css file for extract text plugin
Hi everyone I am using web-pack to try to replace a gulp build that was overly complicated. but was running into some issues when it came to the Css. We are using sass. We also have a project structure that has the sass files right by each of the…

Aaron Rabinowitz
- 357
- 2
- 18
0
votes
1 answer
Webpack Extract Text Plugin: how to test for specific file and extract to separate output?
The normal way to use the Webpack Extract Text Plugin is as follows:
const ExtractTextPlugin = require('extract-text-webpack-plugin')
module.exports = {
entry: {
// ...
},
output: {
// ...
},
module: {
rules: [
// ...
…

Liran H
- 9,143
- 7
- 39
- 52
0
votes
1 answer
Angular 5 Error: "extract-text-webpack-plugin" loader is used without the corresponding plugin
I have this error when compiling.
ERROR in ./src/app/app.component.css Module build failed: Error:
"extract-text-webpack-plugin" loader is used without the
corresponding plugin, refer to
https://github.com/webpack/extract-text-webp…

Team Flamelsoft
- 43
- 1
- 7
0
votes
1 answer
Why I should state scss file in entry webpack config
why my webpack config cannot watch scss file?
if i explicitly add the file into entry then it's working, creating css file. is it a good practice?
///
"use strict";
const path =…

bondythegreat
- 1,379
- 11
- 18
0
votes
0 answers
How to append extracted CSS file to HTML template in Webpack 4
When I use extract-text-webpack-plugin, the extracted single CSS file appends itself to my index.html when creating the production build. However, I just switched to mini-css-extract-plugin and when I build for production the extracted single CSS…

esausilva
- 1,964
- 4
- 26
- 54
0
votes
1 answer
Are entry points required for non JavaScript assets in web pack 4?
The only way I have successfully had webpack generate a non JavaScript file is to include an entry for the primary asset. The problem is, webpack is generating a .js file based on this asset as well, which is unnecessary. Is this the correct way of…

Phil Sinatra
- 419
- 3
- 11
0
votes
1 answer
Module build failed: Error: "extract-text-webpack-plugin" when import .scss file
this issue occurred when I import .scss file in react component.
package.json
"scripts": {
"dev": "source ./.env && nodemon server.js"
},
"devDependencies": {
"babel-core": "^6.26.0",
"babel-loader": "^7.1.4",
"babel-preset-env": "^1.6.1",
…

Giambi Huang
- 111
- 1
- 13
0
votes
1 answer
Scss files not get compiled
I have scss files under src/css and want to compile it through webpack.
It seems not working.
What's the possible root cause?
Thanks
var webpack = require('webpack');
var path = require('path');
const ExtractTextPlugin =…

newBike
- 14,385
- 29
- 109
- 192