Skip to content

Commit c73ef46

Browse files
committed
feat(app-vite/app-webpack/create-quasar/docs): support multiple postcss/babel/eslint config files; normalize create-quasar config files #15756
1 parent 2acbc68 commit c73ef46

File tree

22 files changed

+35
-25
lines changed

22 files changed

+35
-25
lines changed

app-webpack/lib/app-paths.js

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,12 @@ function getAppInfo () {
2727
}
2828

2929
const postcssConfigFilenameList = [
30+
'postcss.config.cjs',
3031
'.postcssrc.js',
3132
'postcss.config.js',
32-
'postcss.config.cjs'
33+
'postcss.config.mjs',
34+
'.postcssrc.cjs',
35+
'.postcssrc.mjs'
3336
]
3437

3538
function getPostcssConfigFile (appDir) {
@@ -42,9 +45,13 @@ function getPostcssConfigFile (appDir) {
4245
}
4346

4447
const babelConfigFilenameList = [
45-
'babel.config.js',
4648
'babel.config.cjs',
47-
'.babelrc.js'
49+
'babel.config.js',
50+
'babel.config.mjs',
51+
'.babelrc.js',
52+
'.babelrc.cjs',
53+
'.babelrc.mjs',
54+
'.babelrc'
4855
]
4956

5057
function getBabelConfigFile (appDir) {
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)