Add options to Vue CSS loaders
See original GitHub issueDescription:
I can’t seem to find a way to add options to Vue CSS loaders. For example, I’d like to add includePaths
to Vue’s sass-loader
, but I don’t see an option anywhere in the API. I’ve looked in laravel-mix/src/builder/webpack-rules.js
, but there doesn’t seem to be a place I can leverage.
Thoughts?
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:12
Top Results From Across the Web
CSS Modules - Vue Loader
CSS Modules is a popular system for modularizing and composing CSS. vue-loader provides first-class integration with CSS Modules as an alternative for ...
Read more >Vue scoped styles: webpack 5 & css-loader 4 - Stack Overflow
add ident: 'css-loader-ident' to the css-loader config (same level as options ). So far I have not gotten a webpack config that will...
Read more >Add options to Vue CSS loaders · Issue #875 - GitHub
I can't seem to find a way to add options to Vue CSS loaders. For example, I'd like to add includePaths to Vue's...
Read more >How To Add Loading Indicators to a Vue.js Application
In this article, you explored some of the ways to add a loading indicator to your Vue.js app. Loading indicators are a useful...
Read more >style-loader - webpack
module.exports = { module: { rules: [ { test: /\.css$/i, use: [ { loader: "style-loader", options: { insert: function insertAtTop(element) { var parent...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
with laravel-mix 2.0 it can be done extending mix. With the mix.extend function you get the compiled webpack config, then find vue-loader and add the i18n loader, i preferd webpack-merge.smart
@xxRockOnxx you need the
exclude
property in that config because Mix usesmerge.smart()
from webpack-merge andmerge.smart()
requires that the properties be the same to override a specific rule block.