Leave a reminder about parcel's code splitting
This commit is contained in:
parent
97677244f5
commit
f5a454571b
|
@ -7,7 +7,8 @@
|
||||||
"author": "Robbie Antenesse <dev@alamantus.com>",
|
"author": "Robbie Antenesse <dev@alamantus.com>",
|
||||||
"license": "UNLICENCED",
|
"license": "UNLICENCED",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "parcel index.html"
|
"start": "parcel index.html",
|
||||||
|
"bundle": "parcel build index.html"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"parcel-bundler": "^1.12.3",
|
"parcel-bundler": "^1.12.3",
|
||||||
|
|
|
@ -18,6 +18,10 @@ function setupDetailsTabs() {
|
||||||
const section = tab.innerText.toLowerCase();
|
const section = tab.innerText.toLowerCase();
|
||||||
if (section === 'edit') {
|
if (section === 'edit') {
|
||||||
openEditModal();
|
openEditModal();
|
||||||
|
// import('../test.js').then(function (test) {
|
||||||
|
// // Render page
|
||||||
|
// test.aaa();
|
||||||
|
// });
|
||||||
} else {
|
} else {
|
||||||
const isActive = tab.classList.contains('active');
|
const isActive = tab.classList.contains('active');
|
||||||
tabs.forEach(t => t.classList.remove('active'));
|
tabs.forEach(t => t.classList.remove('active'));
|
||||||
|
|
|
@ -0,0 +1,2 @@
|
||||||
|
// https://parceljs.org/code_splitting.html
|
||||||
|
export function aaa () {console.log('aaa');};
|
Loading…
Reference in New Issue