Tag: sass-loader

Webpack nicht be-hintergrund-Bild

Anzahl der Antworten 2 Antworten
Ich versuche, laden Sie ein Bild: background: transparent url("../img/select-icon.png") no-repeat center right 8px; In meinem Stil.scss, und es funktioniert nicht Hier ist mein webpack.config: function _path(p) { return path.join(__dirname, p); } module.exports = { context: __dirname, entry:

die Fehlermeldung 'cannot find module' auf 'main.scss' mit Webpack, SASS, und Reagieren

Anzahl der Antworten 5 Antworten
Wenn Sie versuchen, SCSS, um führen Sie das styling auf meinen Reagieren-Anwendung mit Webpack bin ich mit dem Fehler: Module not found: Error: Can't resolve 'style' in '/Users/sachinkaria/Workspace/GC' @ ./app/index.js 4:0-29 @ multi ./app/index.js' und in den

Warum bin ich nicht in der Lage zu kompilieren SASS mit Webpack?

Anzahl der Antworten 1 Antworten
Habe ich die folgenden Module, die in meinem Webpack config: module: { preLoaders: [ { test: /\.vue$/, loader: 'eslint', include: projectRoot, exclude: /node_modules/ }, { test: /\.js$/, loader: 'eslint', include: projectRoot, exclude: /node_modules/ } ], loaders: [

Webpack 4: mini-css-Auszug-plugin + sass-loader + splitChunks

Anzahl der Antworten 1 Antworten
Habe ich die folgende Beispiel-Konfiguration zu verwenden mini-css-Auszug-plugin mit Webpack 4: entry: { a: ['./js/a.js', './scss/a.scss'], b: ['./js/b.js', './scss/b.scss'] }, module: { rules: [ [...], { test: /\.(css|sass|scss)$/, use: [ MiniCssExtractPlugin.loader, { loader: 'css-loader', options: { importLoaders:

Vue.js + Webpack + vue-loader + bootstrap-sass + sass-loader

Anzahl der Antworten 3 Antworten
Ich fange gerade mit Vue.js + Webpack + vue-loader + bootstrap-sass + sass-loader und ich bin ein wenig verloren. Was ich möchte zu tun ist, verwenden Sie die SASS-version von bootstrap mit meinem SPA Vue.js code. Ich

webpack (mit sass-loader) - scss-Datei @import erkennt den Aliasnamen nicht

Anzahl der Antworten 3 Antworten
Mein Projekt Struktur: webpack.config.js app-- --> src ---->> components ------>>> myComponent.js ------>>> myComponent.scss --> styles ---->> variables.scss Im webpack.config-Modul.Exporte: ... resolve: { alias: { styles: path.join(__dirname, 'app/styles') } } In meinem Datei - myComponent.scss: @import "styles/variables"; Bin

Webpack - Sass Loader kann Bilder nicht finden

Anzahl der Antworten 3 Antworten
Den sass loader doc sagt: "If you're just generating CSS without passing it to the css-loader, it must be relative to your web root". Also ich Tat, wie er erzählt, habe ich meine index.html in meinem project