|
@@ -25,8 +25,10 @@ module.exports = {
|
|
|
'v4-style': './src/legacy-style.js',
|
|
'v4-style': './src/legacy-style.js',
|
|
|
// Reproduces gulp `jsf` → homepage JS (jquery + svg-morpheus + front-page.js).
|
|
// Reproduces gulp `jsf` → homepage JS (jquery + svg-morpheus + front-page.js).
|
|
|
front: './src/front.js',
|
|
front: './src/front.js',
|
|
|
- // Reproduces gulp `js` → site-wide JS (jquery/bootstrap/fullcalendar/plugins).
|
|
|
|
|
|
|
+ // Reproduces gulp `js` → site-wide JS (jquery/bootstrap/plugins).
|
|
|
main: './src/main.js',
|
|
main: './src/main.js',
|
|
|
|
|
+ // FullCalendar — split out of the site-wide bundle; enqueued only on the About page.
|
|
|
|
|
+ 'v4-fullcalendar': './src/fullcalendar.js',
|
|
|
},
|
|
},
|
|
|
output: {
|
|
output: {
|
|
|
path: path.resolve(__dirname), // theme root
|
|
path: path.resolve(__dirname), // theme root
|
|
@@ -37,6 +39,7 @@ module.exports = {
|
|
|
const n = pathData.chunk.name;
|
|
const n = pathData.chunk.name;
|
|
|
if (n === 'front') return 'js/v4-front.min.js';
|
|
if (n === 'front') return 'js/v4-front.min.js';
|
|
|
if (n === 'main') return 'js/v4-script.min.js';
|
|
if (n === 'main') return 'js/v4-script.min.js';
|
|
|
|
|
+ if (n === 'v4-fullcalendar') return 'js/v4-fullcalendar.min.js';
|
|
|
return 'build/[name].js';
|
|
return 'build/[name].js';
|
|
|
},
|
|
},
|
|
|
clean: false, // NEVER clean — output.path is the theme root
|
|
clean: false, // NEVER clean — output.path is the theme root
|