Skip to content

Commit

Permalink
chore(esbuild): fix mispronounces in code, add namings to plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
Falcion committed Nov 5, 2024
1 parent 7301437 commit e56c1bb
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions esbuild.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ if you want to view the source, please visit the github repository of this plugi
`;

let assigner = {
name: 'main',
name: 'assigner',
setup(build) {
build.onEnd(() => {
const main = fs.readFileSync('main.css', 'utf8');
Expand All @@ -27,7 +27,7 @@ let assigner = {
}

let manifest = {
name: 'main',
name: 'manifest',
setup(build) {
build.onEnd(() => {
fs.writeFileSync('out/manifest.json', fs.readFileSync('manifest.json'), 'utf8');
Expand All @@ -36,16 +36,16 @@ let manifest = {
}

let autotest = {
name: 'main',
setuo(build) {
name: 'autotest',
setup(build) {
build.onEnd(() => {
const PUT_YOUR_PATH_HERE_IF_ENABLED = '';
const ENABLED = true;
const ENABLED = false;

if (ENABLED) {
fs.copyFile('out/manifest.json', PUT_YOUR_PATH_HERE_IF_ENABLED);
fs.copyFile('out/main.js', PUT_YOUR_PATH_HERE_IF_ENABLED);
fs.copyFile('out/styles.css', PUT_YOUR_PATH_HERE_IF_ENABLED);
fs.copyFileSync('out/manifest.json', PUT_YOUR_PATH_HERE_IF_ENABLED);
fs.copyFileSync('out/main.js', PUT_YOUR_PATH_HERE_IF_ENABLED);
fs.copyFileSync('out/styles.css', PUT_YOUR_PATH_HERE_IF_ENABLED);
}
});
}
Expand Down

0 comments on commit e56c1bb

Please sign in to comment.