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

ignore css file on server bundler / 服务端构建时忽略 css 文件 #272

Open
JiangWeixian opened this issue Sep 3, 2023 · 0 comments

Comments

@JiangWeixian
Copy link
Owner

Only ignore .css, *.module.css will still process by bundler to generate .json file.

webpack

{
  test: CSS_RE,
  exclude: CSS_MODULES_RE,
  sideEffects: true,
  use: [
    {
      loader: require.resolve('@ies/pace-kit/ignore-loader.cjs'),
    },
  ],
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant