vuepress / core

Vue-Powered Static Site Generator
https://vuepress.vuejs.org
MIT License
2.16k stars 922 forks source link

[Feature request] support `*.module.ext` for css modules #1557

Closed Mister-Hope closed 1 month ago

Mister-Hope commented 1 month ago

Clear and concise description of the problem

Currently webpack configuration is not aligned with vite.

The following works in vite, but not webpack:

import { a } from './a.module.css'

This works in webpack:

import { a } from './a.css?module'

Suggested solution

Align both bundler behavior.

Alternative

No response

Additional context

No response