Questions tagged [webpack-style-loader]
461 questions
0
votes
1 answer
Thumbnail component issue in react
I have added the thumbnail component into my project. I got to see the following error in my project after adding it. The error is shown in the following image.
Here's my webpack.config.js file code which might help you on understanding the issue.…

Subhojit
- 1,389
- 8
- 19
- 33
0
votes
1 answer
Load Webpack bundle, whilst keeping all CSS local
I am having an issue, with the pollution of CSS local VS global properties.
My application is loaded via a script tag on the page of a third party website, it is a vuejs application delivered via a single bundle.js.
When the app loads (modal), it…

dendog
- 2,976
- 5
- 26
- 63
0
votes
1 answer
Webpack css-loader: "Module not found: Error: Can't resolve 'main.css' in ..."
I am trying to include my css in the server hosted by webpack-dev-server. For that to happen, I apparently have to use style-loader and css-loader together, in order to bundle the css into the JavaScript.
I can't get it to work.
I follow the…

Magnus
- 6,791
- 8
- 53
- 84
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…

Phil Sinatra
- 419
- 3
- 11
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…

Chandra Shekhar
- 3,550
- 2
- 14
- 22
0
votes
1 answer
Is there some error in my code as files aren't compiling
Webpack 4 isn't working for me. I mainly want it to compile SCSS to CSS
here is the config file. Also, it does not throw any error just shows that it has been compiled.
I'm sure it's lying :)
const path = require('path');
const webpack =…

Aditya Raj
- 327
- 3
- 14
0
votes
1 answer
Webpack / Style Loader / CSS module: CSS Object and JS Code doesn't match
I try to configure webpack to give me the same result from another building tool. It's a react app with webpack 1.15. The problem i'm facing is probably in the css/style loader (SCSS).
My css-loader is like this:
loaders: [
{
test:…

Axel
- 66
- 1
- 9
0
votes
1 answer