Skip to main content

All Questions

Tagged with
0 votes
1 answer
26 views

Avoid url resolution in scss files in Angular

I did a css -> scss migration on an existing Angular project using schematics-scss-migrate. Everything works fine except the URL's, if any, in scss files. So I found out that in scss files the URL'...
Urooj's user avatar
  • 334
-1 votes
0 answers
27 views

Next.js Build failed because of webpack errors: CssSyntaxError

I've been stuck and going all over internet trying to figure something that prevents my app to be build on Vercell (well locally as well). npm run dev - works great, no issues stylelint and eslint ...
Fallen Angel's user avatar
0 votes
1 answer
35 views

Webpack raw-loader/style-loader importing CSS file as JavaScript string instead of CSS content

I am using Webpack to build my chrome extension and I am trying to import a CSS file as a string so that I can inject it into a shadow DOM. However, when I import the CSS file, it is imported as ...
Joel Benjamin's user avatar
1 vote
0 answers
37 views

How to get url path for CSS at runtime?

I use CSS Modules. I don't need resolving of url, but I need replace url paths with my custom function call so that I could get the full url at runtime by myself with my custom logic. For example, &...
Eugene Starosvetskiy's user avatar
0 votes
0 answers
82 views

"You forgot to add 'mini-css-extract-plugin' plugin" when work with thread-loader

Try to use thread-loader with mini-css-extract-plugin. When run npm build script, got error: > cross-env NODE_ENV=production webpack assets by status 958 bytes [cached] 1 asset runtime modules 663 ...
Lin Du's user avatar
  • 98.7k
0 votes
1 answer
52 views

Refused to apply style from 'http://localhost:8080/style.css' because its MIME type

I'm planning to remove padding in my phaser canvas but when I use external css it doesn't work in my index.html I have the code below <!DOCTYPE html> <html lang="en"> <head>...
Newboy11's user avatar
  • 3,038
0 votes
0 answers
54 views

how to stop nextjs from combining all css modules into one css file in production?

I am currently working on optimizing Nextjs website for SEO. My styling option for the sites has been using css modules. I realized that Nextjs will combine all of them into one css file in production ...
ThomasH.Allen's user avatar
0 votes
1 answer
23 views

CSS not loading when importing UMD into ESM file

I'm transpiling a React component library into UMD using Webpack (Babel, etc.). The components load just fine in a local Storybook instance, but when I import them into a new create-react-app project, ...
robbymarston's user avatar
0 votes
0 answers
66 views

Error in import default from css file using vite and webpack

I'm trying to migrate from Create react app to Vite. But now I have the following error in on of the packages that I use in my React app. [vite] connecting... client.ts:19:8 [vite] connected. client....
Mateus Gonçalves's user avatar
0 votes
1 answer
102 views

Module.css loaded successfully but undefined

I imported data from module.css, however it is undefined. import styles from "../css/basic-styles.module.css"; console.log(styles) // undefined. My basic-styels.module.css has data *{ ...
whitebear's user avatar
  • 12k
0 votes
1 answer
25 views

Styles and css are not loaded in browser

i've updated my packages versions on react project, and styles now not loading. in code i use styles like this: import styles from "../WrappersCommon.scss"; ... <div className=...
user453575457's user avatar
0 votes
0 answers
27 views

How to have separate CSS files for separate JavaScript files using Webpack?

I am trying to use two separate css files for two seperate HTMl page files using Webpack. This is my webpack config file: const path = require('path'); module.exports = { mode: 'development', ...
user24838028's user avatar
0 votes
0 answers
13 views

Title: How to Skip Loading Duplicate CSS Files in Nimbus Bundle Loader?

I am currently facing an issue where my app, loaded in the Nimbus Bundle Loader, is loading two CSS files (main.css and chunk.css) with the same content. I want to find a solution to skip loading one ...
jaya lakshmi's user avatar
0 votes
0 answers
42 views

Webpack config to single file

I'm having trouble building a Preact widget project, Before that, I used microbundle to build index.js and index.css files Then I want to use webpack to build one more time to combine these 2 files ...
Blackmeow's user avatar
0 votes
1 answer
85 views

Next.js app won't load bundled CSS from a React Component Kit

I have a repository of React components. Each component has its own .css file that gets imported into the component. These components are then bundled using a rollup config and published as an NPM ...
Dog's user avatar
  • 2,828

15 30 50 per page
1
2 3 4 5
136