Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

配置postcss-loader不生效 #1907

Closed
ThorSmallice opened this issue Sep 21, 2023 · 0 comments
Closed

配置postcss-loader不生效 #1907

ThorSmallice opened this issue Sep 21, 2023 · 0 comments
Labels
question Further information is requested

Comments

@ThorSmallice
Copy link

import { defineConfig } from 'dumi';
import path from 'path';
export default defineConfig({
outputPath: 'docs-dist',
resolve: {
atomDirs: [
{
type: 'component',
dir: 'src/components',
},
{
type: 'hooks',
dir: 'src/hooks',
},
],
},
themeConfig: {
name: 'test',
},
postcssLoader: {
module: {
rules: [
{
test: /.pcss$/,
include: path.resolve('./src/components'),
use: [
'style-loader',
'css-loader',
{
loader: 'postcss-loader',
options: {
plugins: [require('autoprefixer')],
},
},
],
},
],
},
},
extraPostCSSPlugins: [require('autoprefixer')],
alias: {
'@context': path.resolve(__dirname, 'src/context'),
'@hooks': path.resolve(__dirname, 'src/hooks'),
},
});

@ThorSmallice ThorSmallice added the question Further information is requested label Sep 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant