Bad
20e94f05e7
This significantly reduces the bundle size(over 1MiB!) but it also uses some hacks to dynamically load browserify modules on runtime(see lazy-load-modules.js
67 lines
1.2 KiB
JavaScript
67 lines
1.2 KiB
JavaScript
module.exports = [
|
|
{
|
|
type: "file",
|
|
source: "/assets/fonts/whitney-500.woff",
|
|
target: "/static/whitney-500.woff",
|
|
},
|
|
{
|
|
type: "file",
|
|
source: "/assets/fonts/whitney-400.woff",
|
|
target: "/static/whitney-400.woff",
|
|
},
|
|
{
|
|
type: "bundle",
|
|
source: "/js/login.js",
|
|
target: "/static/login.js",
|
|
},
|
|
{
|
|
type: "bundle",
|
|
source: "/js/main.js",
|
|
target: "/static/bundle.js"
|
|
},
|
|
{
|
|
type: "module",
|
|
source: "/js/hljs.js",
|
|
target: "/static/hljs.js"
|
|
},
|
|
{
|
|
type: "file",
|
|
source: "/assets/fonts/whitney-500.woff",
|
|
target: "/static/whitney-500.woff",
|
|
},
|
|
{
|
|
type: "file",
|
|
source: "/assets/icons/directs.svg",
|
|
target: "/static/directs.svg",
|
|
},
|
|
{
|
|
type: "file",
|
|
source: "/assets/icons/channels.svg",
|
|
target: "/static/channels.svg",
|
|
},
|
|
{
|
|
type: "file",
|
|
source: "/assets/icons/join-event.svg",
|
|
target: "/static/join-event.svg",
|
|
},
|
|
{
|
|
type: "sass",
|
|
source: "/sass/main.sass",
|
|
target: "/static/main.css",
|
|
},
|
|
{
|
|
type: "sass",
|
|
source: "/sass/login.sass",
|
|
target: "/static/login.css",
|
|
},
|
|
{
|
|
type: "pug",
|
|
source: "/home.pug",
|
|
target: "/index.html",
|
|
},
|
|
{
|
|
type: "pug",
|
|
source: "/login.pug",
|
|
target: "/login/index.html",
|
|
},
|
|
];
|