vuepress / core

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

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

Closed Mister-Hope closed 6 months ago

Mister-Hope commented 6 months 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