-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from chengpeiquan/develop
feat: add an option for debug
- Loading branch information
Showing
6 changed files
with
114 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,32 @@ | ||
/** | ||
* The plugin input parameter can be an object | ||
* @param content - The comment content of the banner | ||
* @param outDir - The output directory from vite | ||
* Some options from `vite.config.[ts|js]` | ||
* @tips This options type is supported since `0.2.0` | ||
*/ | ||
export interface BannerPluginOptions { | ||
/** | ||
* The comment content of the banner | ||
*/ | ||
content: string | ||
|
||
/** | ||
* The output directory from the configuration of Vite.js | ||
* @default `dist` | ||
*/ | ||
outDir?: string | ||
|
||
/** | ||
* Whether to print error messages to the console | ||
* @tips This option is supported since `0.4.0` | ||
* @default `false` | ||
*/ | ||
debug?: boolean | ||
} | ||
|
||
/** | ||
* The config for the plugin | ||
* Configuration of the plugin's internal runtime | ||
*/ | ||
export interface PluginConfig { | ||
content: string | ||
outDir: string | ||
debug: boolean | ||
} |