Questions tagged [css-loader]

css loader module for webpack

516 questions
0
votes
1 answer

facing issues whille installing npm ts loader and npm css loader

I am getting all these warning while installing ts loader and css loader.. npm ts loader user@user-ThinkPad-T420s:~$ npm install --save-dev ts-loader npm WARN saveError ENOENT: no such file or directory, open '/home/user/package.json' /home/user `--…
Mayank Sethi
  • 197
  • 1
  • 1
  • 10
0
votes
0 answers

Installing css-loader via npm gives "error parsing json"

I'm trying to install css-loader (v 0.28.2) to a Visual Studio 2015 project via npm: >npm install --save-dev css-loader This gives the long error copied at the bottom. We are running this behind a corporate firewall and have already followed the…
jlembke
  • 13,217
  • 11
  • 42
  • 56
0
votes
1 answer

Cannot extract multiple scss files to one css file

It seems that I don't know the way how to extract multiple .scss files to a one .css file. After building my /dist folder constains only .js files. I followed many guides, but non of them works. Here is my webpack.config.js module.exports = { …
Humberd
  • 2,794
  • 3
  • 20
  • 37
0
votes
2 answers

Cant resolve scss loader in Vuejs element ui template

Hi i was trying to use element ui template for vue js 2. I have followed this guide http://element.eleme.io/#/en-US/component/quickstart but i am getting an error of Module not found : cant resolve scss loader in file App.vue. This is my…
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
2 answers

Webpack config with css loader

I have been using this webpack config for loading babel and css loaders, but getting error. My webpack config works very well, if I use only babel loader, but css loader isn't working. var path = require('path'); var config = { entry:…
h_h
  • 1,201
  • 4
  • 28
  • 47
0
votes
1 answer

Webpack & Css-loader. How to create dynamic className for React?

The project has the following reference, which returns a string: const left = slide.imageLeft; // introLeft And further renders it inside React Component. But it returns as a string styles.imageLeft and since webpack doest convert it into…
volna
  • 2,452
  • 4
  • 25
  • 61
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

How to webpack sass inline variables #{$i}

I'm trying something like: @for $i from 0 through 5 { .foo-#{$i} { padding-left: 16px * $i; } } I get the following error: CssSyntaxError: app/styles.scss:41:11: Unknown word You tried to parse SCSS with the standard CSS parser;…
leeodelion
  • 151
  • 6
0
votes
0 answers

webpack css-loader error 'Promise is not defined.' during jenkins build

I know the Jenkins that I am running my code there, is using an old version on Node.js, but I don't have any permission to update it. Unfortunately updating Node.js is not a choice for me. I have done all the suggestion on github, stackoverflow,…
user261002
  • 2,182
  • 10
  • 46
  • 73
0
votes
1 answer

How to add CSS with this HTML file?

Removed content. Reading documentation beforehand is important to minimize recurring questions. Refer to Webpack v2 documentation.
Van
  • 65
  • 9
0
votes
1 answer

Angular 2 AOT Webpack CSS relative nested url

I'm using Material-Design-Icons in my project, and I'm importing its css inside my own css file. This is how it is done: app.component.css @import "../node_modules/mdi/css/materialdesignicons.min.css"; materialdesignicons.css @font-face { …
Amir Tugi
  • 2,386
  • 3
  • 16
  • 18
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
0
votes
1 answer

import css file from node_modules

We have a private npm repository, where we have a css file as part of lib folder. When trying to require that css file using require('/lib/abc.css') and using webpack to load that, i am getting below error : SyntaxError: Unexpected…
Abhijeet Mishra
  • 443
  • 4
  • 13
0
votes
2 answers

ajax request is not stopping

Here is my ajax call: $.ajax({ url: "AutoRFQ_Vendors_ST.aspx/BindVesselGrid", type: "POST", timeout: 3000, data: JSON.stringify(sendingdata), …
Arun Nandha
  • 47
  • 1
  • 9