postcss-loader

How do I load local fonts with @rails/webpacker?

你说的曾经没有我的故事 提交于 2020-12-29 12:37:46
问题 I’m having an issue loading local font files with @rails/webpacker . The fonts are loaded in the development environment but not in the production environment. It seems like a really simple issue but I have just had so much trouble with it. Below is my @font-face code. My fonts are stored in app/assets/images/fonts app > assets > stylesheets >config > _fonts.scss @font-face { font-family: "Axiforma"; src: url("fonts/Kastelov-AxiformaRegular.eot"); /* IE9 Compat Modes */ src: url("fonts

Exclude some css files in webpack

可紊 提交于 2019-12-24 18:15:13
问题 I'm facing a problem with webpack . My project has the following structure. Folder structure: src js app.js // For importing app.scss file vendor.js // For importing vendor.scss file scss app.scss // Our custom styles vendor.scss // Require all vendor styles from node_modules package.json postcss.config.js webpack.config.js Inside scss folder there are 2 files app.scss & vendor.scss . app.scss file contains all our custom styles, vendor.scss file contains all vendor styles such as bootstrap

Exclude some css files in webpack

て烟熏妆下的殇ゞ 提交于 2019-12-24 18:14:15
问题 I'm facing a problem with webpack . My project has the following structure. Folder structure: src js app.js // For importing app.scss file vendor.js // For importing vendor.scss file scss app.scss // Our custom styles vendor.scss // Require all vendor styles from node_modules package.json postcss.config.js webpack.config.js Inside scss folder there are 2 files app.scss & vendor.scss . app.scss file contains all our custom styles, vendor.scss file contains all vendor styles such as bootstrap

sourceMap with sass-loader and postcss-loader in Webpack

你离开我真会死。 提交于 2019-12-20 04:22:57
问题 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 source": But when I disable postcss-loader the sourceMap works fine and points to "typography" file: webpack.config.js const path = require('path'); const ExtractTextPlugin = require('extract-text-webpack-plugin'); module.exports = { mode: 'development', entry: './src/index.js', output: { path: path

Logging what plugins PostCSS is running with?

旧巷老猫 提交于 2019-12-11 04:14:02
问题 I'm writing a CLI that uses PostCSS and even though I don't have uncss in the plugins array, I'm getting error reports from uncss . Is there a way to have PostCSS print out what plugins are currently loaded? This issue is related to this issue. 来源: https://stackoverflow.com/questions/54271046/logging-what-plugins-postcss-is-running-with