Questions tagged [webpack-style-loader]

461 questions
0
votes
0 answers

Less CSS string variable concatenation

I have a LESS variable in a file called "variable.less" that looks like: @maxcdn-heroku-ssl: "https://heroku-mywebsite.netdna-ssl.com"; I'm trying to import that variable into a separate LESS file and use it as so: @import "variables.less"; .guide…
0
votes
1 answer

Isolate styles in different layouts (webpack, react)

I have two layouts (LayoutWithShortHeader, TestLayout) and such routes: export default (
dortonway
  • 439
  • 1
  • 5
  • 17
0
votes
1 answer

Webpack: Using Component specific css render different in html?

By following this tutorial, https://github.com/christianalfoni/react-webpack-cookbook/wiki/Loading-CSS#component-specific i tried implementing this logic, this is how it is implemented. This is how it is rendered on the web, As you can see the…
Sathish
  • 2,056
  • 3
  • 26
  • 40
0
votes
1 answer

Webpack won't generate external css file

my webpack setup won't generate the external css file. It bundles my .js just fine however. I am using the ExtractTextPlugin and it's still not working. No errors are generated. Any help would be greatly appreciated! :-) Here is my…
cpeele00
  • 883
  • 4
  • 14
  • 29
0
votes
1 answer

Bundling separate CSS with Webpack

I've got Webpack working with style-loader and sass-loader, but can't figure one thing out: I have two separate "stylesheet" bundles (our normal app, and a custom-skin version for a client). If I require them in separately, it'll still get output as…
Steven
  • 1,566
  • 2
  • 16
  • 38
0
votes
1 answer

Webpack and SASS hot reloading

I'm making a simple html and CSS app. I need to my SASS changes to show up on the website LIVE as im developing. And once all the SASS and development is complete I will run webpack -b and webpack should convert the SASS to CSS. I'm sure someone has…
Sahan
  • 1,422
  • 2
  • 18
  • 33
0
votes
1 answer

SASS to CSS compilation does not work in Webpack

I tried to compile SASS to CSS, but it doesn't work. Webpack does not generate a css file. Perhaps something in webpack configuration is wrong, because when i tried this project, it worked. webpack.config.js const BowerWebpackPlugin =…
Matt
  • 8,195
  • 31
  • 115
  • 225
-1
votes
1 answer

Style Loader has been initialised using an options object that does not match the API schema

I am a very new to programming. So read a few articles and trying to configure web-pack for the following purpose. I'm building a preact widget and the CSS is clashing with parent website. Hence I'm trying to create a shadow DOM and then load css…
Tomaz_
  • 349
  • 2
  • 11
-1
votes
1 answer

Webpack CSS Module Error how to load css properly

Hey guys I'm trying to run this project using Webpack with the CSS loader but I keep getting this error: ERROR in ./src/component/list-view/list-view.css 1:3 Module parse failed: Unexpected token (1:3) You may need an appropriate loader to handle…
MrRobot
  • 1,001
  • 1
  • 14
  • 34
-2
votes
1 answer

Why can't my css apply on localhost.3000?

MY INDEX.CSS CANNOT APPLY ON MY LOCALHOST.300. I TRIED TO INSTALL THE CSS LOADER AND STUFF BUT IT STILL DOESN'T WORKING, ANYBODY CAN HELP ME?! This is my Header.js: import React from 'react' import PropTypes from 'prop-types'; const Header =…
-2
votes
1 answer

Is there any operation will cause css be loaded as async in webpack?

ref: https://github.com/amireh/happypack/issues/202 The question is, I don't know why the css be loaded as async and how to solve this correctly ------------------Update---------------------- My question is, what reason cause my css be loaded as…
1 2 3
30
31