Questions tagged [extract-text-plugin]

121 questions
1
vote
1 answer

Configure source maps for extract-text-webpack-plugin

How can I configure extract-text-webpack-plugin to generate source maps when devtools config option is set to any value containing "source-map" (not only exact match)?
kirschpirogge
  • 357
  • 4
  • 12
1
vote
1 answer

Webpack - Import Less from TypeScript fails (css-loader)

I'm trying to build a test project with TypeScript via Webpack. Have just index.ts file and base.less (or base.css) file imported in index.ts and it fails with errors on css-loader. Without imported LESS (CSS) file in a .ts file all working good. I…
Max
  • 404
  • 2
  • 17
  • 39
1
vote
2 answers

Why does ExtractTextPlugin create an empty css file via the plugin? Why is the sass loader providing empty objects when imported with Webpack?

I have configured webpack to use ExtractTextPlugin for generating a single css file from sass as well as allowing it to be available within a reactjs app via import through a webpack loader. The usage of the sass files are detected through the…
1
vote
2 answers

Error with webpack using css-loader and text-extract-webpack-plugin

I am using webpack@2.2.0-rc.3 and extract-text-webpack-plugin@2.0.0-beta.4 and I have the following webpack config: var path = require('path'); var ExtractTextPlugin = require("extract-text-webpack-plugin"); module.exports = { entry: { app:…
dorellang
  • 51
  • 1
  • 3
1
vote
1 answer

How can I configure webpack 2.2.0 rc3 (rc4) and bootstrap alpha 6 via bootstrap-loader

How can show a right webpack 2 rc3 configuration with bootstap 4? Here is my .bootstraprc This is my webpack.config.js And after all I get this error on npm start: Error in …
To_wave
  • 504
  • 1
  • 7
  • 17
1
vote
1 answer

Error when using Extract Text Webpack Plugin

I'm fairly new to Front End and I've been trying to learn webpack. I'm running into some problems when using Extract-Text-Webpack-Plugin that I can't seem to figure out. I'd appreciate any help on this topic. Also, any suggestion / tips are…
Christian Bangert
  • 673
  • 1
  • 6
  • 16
1
vote
0 answers

Webpack ExtractTextPlugin not generating css files

I am currently trying to restore CSS styles to React Boilerplate, and was able to get the css styles to load successfully in a dev environment. When I try to bundle the project for deployment, the css files are not being created by webpack &…
Turtle
  • 1,369
  • 1
  • 17
  • 32
0
votes
1 answer

Python PyPDF - getting additional spaces when reading text using ExtractText

I'm trying to extract text from a PDF file that has Address information, shown as below CALIFORNIA EYE SPECIALISTS MED GRP INC 1900 W GARVEY AVE S # 335 WEST COVINA CA 91790 and I'm using below logic to extract the data f =…
0
votes
2 answers

Use webpack bundled CSS only in scope of webcomponent

I'm using webpack and the extract-text-webpack-plugin to bundle a webcomponent (created using preact-custom-element) and its style. I'm able to use the component successfully in a separate html file like so:
Patrick
  • 1,728
  • 2
  • 17
  • 30
0
votes
1 answer

How do you force Webpack to ignore errors in URL resolution in the build process?

My directory structure is as follows: example/ ├── css/ │ ├── styles.css ├── img/ │ ├── background.jpg └── src/ ├── scss/ │ ├── app.scss └── app.js When I specify an absolute URL for a background image in app.scss, such as…
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
4 answers

Module parse failed unexpected token when using Webpack 4 with extract-text-plugin

I have read every possible configuration under the sun regarding Webpack 4 to bundle .scss files into .css files. Nothing is working for me. Here is my webpack configuration: var path = require('path'); var ExtractTextPlugin =…
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…
0
votes
1 answer

extract-text-plugin not working with Webpack 3

My webpack.config.js: const webpack = require('webpack'); const ExtractTextPlugin = require('extract-text-webpack-plugin'); module.exports = { entry: [ './src/index.js', 'react-hot-loader/patch', ], module: { …
darKnight
  • 5,651
  • 13
  • 47
  • 87
0
votes
0 answers

Webpack V4 loader issue

I am getting error while compiling my scss file using webpack. I am currently using webpack v4. Webpack shows Module parse failed: Unexpected token (1:4) You may need an appropriate loader to handle this file type. Error. help me to fix this…
1 2 3
8 9