mirror of https://github.com/webpack/webpack.git
feat: cli flags
This commit is contained in:
parent
f909245423
commit
ccf66eefa1
|
@ -1,3 +1,9 @@
|
|||
/**
|
||||
* This file was automatically generated.
|
||||
* DO NOT MODIFY BY HAND.
|
||||
* Run `yarn special-lint-fix` to update
|
||||
*/
|
||||
|
||||
module.exports = {
|
||||
amd: {
|
||||
types: ["boolean"],
|
||||
|
|
|
@ -140,8 +140,16 @@ const prettierConfig = prettier.resolveConfig.sync(cliFlagsPath);
|
|||
|
||||
fs.writeFileSync(
|
||||
cliFlagsPath,
|
||||
prettier.format(`module.exports = ${JSON.stringify(flags, null, 2)};`, {
|
||||
...prettierConfig,
|
||||
parser: "babel"
|
||||
})
|
||||
prettier.format(
|
||||
`/**
|
||||
* This file was automatically generated.
|
||||
* DO NOT MODIFY BY HAND.
|
||||
* Run \`yarn special-lint-fix\` to update
|
||||
*/\n
|
||||
module.exports = ${JSON.stringify(flags, null, 2)};`,
|
||||
{
|
||||
...prettierConfig,
|
||||
parser: "babel"
|
||||
}
|
||||
)
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue