sass-loader Questions

2

Solved

I am trying out Vue with SASS but I run into a problem ben using npm run build. I use webpack sass-loader. Can anyone help me out here? I suspect the problem is somewhere in my webpack config, but ...
Maduro asked 20/2, 2019 at 22:57

1

Solved

My sass modules can import each other like below. // LinearLayout.scss @mixin LinearLayout { ... } linear-layout { @include LinearLayout; } // ScrollView.scss @use "LinearLayout" as *; @...
Eldredge asked 29/9, 2020 at 11:44

3

I want to be able to use absolute paths in @import statements. Something like: @import '/templates/common/variables' However, sass seems to resolve it as an absolute url within my filesystem. I ...
Canton asked 19/7, 2018 at 13:52

0

I am a bit stuck, and right now I am at the verge of a breakdown. Someone, PLEASE enlighten me what is happening here. I am playing around with this for like 4 hours now, and can't seem to find out...
Deafen asked 2/7, 2020 at 17:44

2

Solved

I'm working on a Vue/Vuetify project for quite some time now. It all worked fine until yesterday. I had problems with using the <v-simple-table> vuetify component, so I decided to run npm ins...
Seismism asked 10/9, 2019 at 19:19

3

I'm trying to inject NODE_ENV into a sass file, so I can have different output for dev/prod env, and have a sass function that has a condition like that inside it: @if (NODE_ENV == 'prod') {} my w...
Lobby asked 2/3, 2016 at 14:46

1

Solved

I am getting this error when compiling sass. webpack: 3.12.0, sass-loader: 8.0.0. Also, I use angular2. { test: /\.(scss|sass)$/, use: [ "to-string-loader", { loader: "css-loader", optio...
Sundowner asked 3/10, 2019 at 19:38

1

Solved

I'm trying to use sass package instead of node-sass in Nuxt.js. I found a config like this; // vue.config.js module.exports = { css: { loaderOptions: { sass: { implementation: require('sass'),...
Algae asked 29/7, 2019 at 7:32

3

Solved

Minimally reproducible setup here: https://github.com/jamesopti/webpack_playground/tree/resolve_url_loader_issue Im trying to use resolve-url-loader to add a hashname to my scss url() image paths,...
Jackie asked 12/4, 2018 at 16:28

4

I am using webpack with some plugins and loaders to take my src/ folder and build a dist/ folder. url-loader (which falls back to file-loader when images are larger than a specific limit) is output...
Bearcat asked 14/12, 2018 at 22:7

1

Solved

I'm trying to create a simple web app with material-components-vue and vue-cli with webpack, however, I found out that I cannot import stylesheets from node_modules without a preceding ~. I have t...
Defalcate asked 1/5, 2019 at 8:58

3

I am trying to use CSS variables in an Angular project together with Sass functions (lighten() / darken() to be precise), and as far as I know, the latest version of LibSass allows it. I have ins...
Tissue asked 24/4, 2019 at 6:44

1

Is there a way to reference a process.env.NODE_ENV in a scss file by passing it to the sass-loader in web-pack. If so anyone know how to go about this ? Here is my webpack module lodaers array. ...
Fadil asked 1/5, 2017 at 17:50

1

Solved

I am new to nodejs and get a problem when trying to use sass with it. The following information is just fictional, but it represents the actual condition. THE SCENARIO: I have the followin...
Poppycock asked 7/3, 2019 at 3:0

1

In my project I'm including one CSS file and one SCSS file: require('./../vendor/glyphicons/glyphicons.css'); require('./../css/main.scss'); Source map for CSS - works fine: { test: /\.css$/, ...
Cystocarp asked 24/11, 2016 at 10:35

1

Solved

I'm trying to enable sourceMaps in webpack but there seems to be a problem with sass-loader and postcss-loader combination. With both sass-loader and postcss-loader enabled my console shows "no so...
Resin asked 20/9, 2018 at 9:48

4

Solved

My project structure: webpack.config.js app-- --> src ---->> components ------>>> myComponent.js ------>>> myComponent.scss --> styles ---->> variables....
Abiogenesis asked 11/1, 2016 at 8:42

1

Not too long ago I made a project that used a combination of SASS variables and CSS custom properties. I defined my Sass variables and then used those to create my CSS custom properties. Everything...
Unicef asked 12/6, 2018 at 16:58

2

Solved

Webpack + file-loader + sass-loader is having trouble resolving relative paths for CSS background images. The compiled SCSS file contains a path to the background image that is relative to /dist/ ...
Clericals asked 9/8, 2017 at 18:7

1

Solved

This is my Webpack configs for scss/css files. ... { test: /\.s?css$/, use: [ 'style-loader', { loader: 'css-loader', options: { importLoaders: 2 } }, { loader: 'postcss-loader', options: {...
Overcast asked 18/5, 2018 at 10:27

1

Solved

I have a project setup where I use ExtractTextPlugin to create a CSS file. I'm trying to create a dev Webpack config with the styles injected onto the page using style-loader, css-loader, and sass-...
Antilogism asked 20/3, 2018 at 21:15

1

I've the follow example configuration to use mini-css-extract-plugin with Webpack 4: entry: { a: ['./js/a.js', './scss/a.scss'], b: ['./js/b.js', './scss/b.scss'] }, module: { rules: [ [...], ...
Hetman asked 21/3, 2018 at 15:52

1

Solved

I overrode the sass-loader configuration to include the node_modules path: // config/webpack/environment.js const { environment } = require('@rails/webpacker') environment.loaders.prepend('sass'...
Aerothermodynamics asked 5/2, 2018 at 16:8

2

Solved

I'm building a react app and im using webpack 3 with css/sass loaders + the ExtractTextPlugin to compile my styles and generate main.css. All my scss variables, mixins and partials are compiling in...
Lurlenelurline asked 11/12, 2017 at 19:46

1

Solved

I'm new to Vue (and the concept of single file components) and not sure how the CSS is compiled when my app is generated. I have a pattern library where all the SCSS is compiled for my project so ...
Colincolinson asked 12/12, 2017 at 11:27

© 2022 - 2024 — McMap. All rights reserved.