Moved common JS and CSS to separate file.
This commit is contained in:
parent
584546a8f7
commit
2d6f9d0f1b
36 changed files with 204 additions and 564 deletions
3
build.js
3
build.js
|
@ -12,11 +12,13 @@ const fs = require('fs');
|
|||
debug: isDebug,
|
||||
swc: {
|
||||
es: 'es2021',
|
||||
jsx: '$jsx',
|
||||
},
|
||||
};
|
||||
|
||||
const tasks = {
|
||||
js: [
|
||||
{ source: 'common.js', target: '/assets', name: 'common.{hash}.js', },
|
||||
{ source: 'misuzu.js', target: '/assets', name: 'misuzu.{hash}.js', },
|
||||
{ source: 'oauth2.js', target: '/assets', name: 'oauth2.{hash}.js', },
|
||||
{ source: 'redir-bsky.js', target: '/assets', name: 'redir-bsky.{hash}.js', },
|
||||
|
@ -24,6 +26,7 @@ const fs = require('fs');
|
|||
],
|
||||
css: [
|
||||
{ source: 'errors.css', target: '/', name: 'errors.css', },
|
||||
{ source: 'common.css', target: '/assets', name: 'common.{hash}.css', },
|
||||
{ source: 'misuzu.css', target: '/assets', name: 'misuzu.{hash}.css', },
|
||||
{ source: 'oauth2.css', target: '/assets', name: 'oauth2.{hash}.css', },
|
||||
],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue