Questions tagged [extract-text-plugin]

121 questions
0
votes
1 answer

extract text plugin not extracting css from .scss

I have the following webpack.cofig.js file var path = require('path'); var webpack = require('webpack'); var HtmlWebpackPlugin = require('html-webpack-plugin'); const ExtractTextPlugin = require("extract-text-webpack-plugin"); module.exports = { …
tmp dev
  • 8,043
  • 16
  • 53
  • 108
0
votes
1 answer

Trying to Bundle CSS with ExtractTextPlugin

I'm trying to bundle my CSS into one file with Webpack. I've already got it working for my scripts.but I get an error with my CSS: Module not found: Error: Can't resolve 'circle.css' in 'C:\Projects\tag-validator-front2\src\css'. Here's my…
Troy Taylor
  • 117
  • 1
  • 2
  • 10
0
votes
1 answer

Webpack 2 extract text plugin entrypoints.length issues

I have an issue with upgrading to webpack 2 and the extract text plugin. I have the dev version (without this plugin) working and I cant see whats different. The error I get is node_modules\webpack\lib\Chunk.js:62 return…
Kurtis
  • 1,172
  • 2
  • 12
  • 20
0
votes
0 answers

ExtractTextPlugin can't find css-loader module on Ubuntu

I faced a problem with packaging css files with ExtractTextPlugin and css-loader. Here is the part of my config: plugins: [ ... new ExtractTextPlugin("[name].css") ], module: { loaders: [ ... { test:…
jahra
  • 1,173
  • 1
  • 16
  • 41
0
votes
1 answer

Migration to webpack 2 for ExtractTextPlugin

I am trying to migrate from webpack 1 to 2 based on this guide. I have made most of the changes but struggling with ExtractTextPlugin. This is how it currently looks with webpack 1: module: { loaders: [ { test: /\.jsx?$/, …
0
votes
1 answer

Unable to get webpack to fully ignore unnecessary JSX components

After spending a few years locked into an ancient tech stack for a project, I'm finally getting a chance to explore more current frameworks and dip a toe into React and Webpack. So far, it's for the most part been a refreshing and enjoyable…
dhezl
  • 3
  • 2
0
votes
1 answer

Webpack Extract Text Plugin - css-loader problems in Webpack Node API

What I am trying to achieve is the following: I have an express server which, on a webhook, should regenerate my statically generated web application. I am using webpack to do so. If I generate the static site from webpack's CLI, everything works…
Iris Schaffer
  • 804
  • 8
  • 18
0
votes
1 answer

Webpack: Integrating bootstrap 3 with Angular 2 app

I am using Webpack module bundler in my angular 2 project. I need to integrate BootStrap with my application using webpack. I have installed Bootstrap using npm. Here's the snapshot of my package.json "devDependencies": { …
Hitesh Kumar
  • 3,508
  • 7
  • 40
  • 71
0
votes
0 answers

Using group-media-queries with extractTextPlugin

I'm creating an "angular2" app and for each component, I'm importing a specific CSS file. I'm not using "styleUrls" because I want all the CSS to be bundled in one big file instead of having multiple "style" tags in the header. Now, the thing is…
ssougnez
  • 5,315
  • 11
  • 46
  • 79
0
votes
1 answer

Webpack 2 Extract Text Plugin with Options

I'm trying to pass options to css loader, with new Webpack 2 config: { test: /\.css$/, use: ExtractTextPlugin.extract({ loader: 'css-loader', options: { minimize: { discardComments: { removeAll: true, } …
Matheus Lima
  • 2,103
  • 3
  • 31
  • 49
0
votes
1 answer

ExtractTextPlugin doesn't work with Webpack 2.2 anymore

When I want to build my frontend via webpack -p --progress --hide-modules I get the following error: Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema. -…
user5520186
0
votes
1 answer

Compile/Export sass with webpack 2

I've used Grunt and Gulp before so webpack is a bit new to me still. Now I've configured webpack to successfully bundle my javascript perfectly. The issue I'm having now is bundling my sass and outputting the result to a file. My understanding is…
Cisco
  • 20,972
  • 5
  • 38
  • 60
0
votes
2 answers

extract-text-webpack-plugin - How to create hash name (unique name only if file change)

I have the following question, I'm using: extract-text-webpack-plugin version 2.0.0-rc.2 in webpack 2, and I noticed that even that I change only JS files the name of the css file is changed. I have in my webpack config the following: new…
Boba Fett likes JS
  • 747
  • 3
  • 10
  • 21
0
votes
1 answer

You may need an appropriate loader to handle this file type: Webpack 2

I have upgraded to Webpack 2 and am having problems with my loaders. My project structure is as follows: . ├── components │ └── App.js │ ├── public │ └──css │ └──custom.css └── src └──sass └──custom.scss Inside…
HGB
  • 2,157
  • 8
  • 43
  • 74
0
votes
2 answers

Extract Text Webpack Plugin Does Not Generate Artifacts

I have a very simple set up that uses Webpack (1.14.0) with Extract Text Webpack Plugin (1.0.1) to generate a CSS file. The problem is that upon running webpack, no CSS artifact is produced. Here is my webpack.config.js: var ExtractTextPlugin =…
Brandon Tom
  • 889
  • 7
  • 16
1 2 3
8
9