I use webpack and css-loader, and in my css-loader config I use these options:  options: {     importLoaders: 1,     modules: true,     localIdentName: '[hash:base64:3]' }   Just like you see, it is obvious that I desire all of my class name...
I'm trying to have our .less files picked up by less-loader, then by css-loader, and finally injected into the HTML file by style-loader, as per the Less Loader docs.   I am not getting any errors or warnings, but the styles are not injected or p...
I am using CSS Modules in an Angular Project with Webpack. I had already transformed the class names in .css and .scss files with postcss-modules.  Then with posthtml-css-modules I had changed the values on the class property in html elements for his...
I have a minimal webpack setup and using sass, css and style loaders to compile sass in my project. Everything works fine but I can't understand why when I run webpack -p I get some style-loader functions in my bundle:    As you can see node-modu...
I am having difficulty in getting CSS loading using css-loader on my JSX files.  I was following the example from:   https://christianalfoni.github.io/react-webpack-cookbook/Loading-CSS.html  This is my JSX    import React from 'react'; impor...
I'm using webpack with css-loader. Everything has been working fine except that I don't know how to use jQuery to select a css-loader transformed class. The transformed class name looks something like this "src-styleauthTextboxLeft1Npf4&#...
I am using webpack and less-loader in my project, and in my webpack config I am trying to pass a global variable to be used in my less files. That portion of the config is below:  module: {     loaders: [         {             test: /\.less$/,...
I just upgraded to webpack 4.  I use css modules.   ERROR:     ERROR in ./client/src/common/accordian-component/accordian.css   (./node_modules/css-loader??ref--5-1!./node_modules/postcss-loader/lib??ref--5-2!./client/src/common/accordian-component/a...
I am trying to style a React Component. To achieve this, I am importing a css file and using className such as indicated in ReactJs Documentation.  I have added a css-loader + style-loader to my webpack.config.js file as described below :   const pat...
I raised this issue at extract-text-webpack-plugin but it seems this plugin doesn't support this feature at the moment (I'm not sure).  How can I extract main.scss and home.scss into main.css and home.css in the following example?  Result: Th...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.