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 = {
|
module.exports = {
|
||||||
amd: {
|
amd: {
|
||||||
types: ["boolean"],
|
types: ["boolean"],
|
||||||
|
|
|
@ -140,8 +140,16 @@ const prettierConfig = prettier.resolveConfig.sync(cliFlagsPath);
|
||||||
|
|
||||||
fs.writeFileSync(
|
fs.writeFileSync(
|
||||||
cliFlagsPath,
|
cliFlagsPath,
|
||||||
prettier.format(`module.exports = ${JSON.stringify(flags, null, 2)};`, {
|
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,
|
...prettierConfig,
|
||||||
parser: "babel"
|
parser: "babel"
|
||||||
})
|
}
|
||||||
|
)
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue