| 1 |
const path = require('path'); |
| 2 |
|
| 3 |
// The entry keys are UNPREFIXED, so these stay REAL webpack entries emitting |
| 4 |
// assets/js/deactivation-survey.js and assets/css/deactivation-survey-style.css, |
| 5 |
// which module.php enqueues by those paths on plugins.php. A `modules/` prefix |
| 6 |
// would fold this into the SPA bundle (react-src/generated/moduleManifest.ts, |
| 7 |
// Constitution XIII) — and the SPA never loads on plugins.php, so the survey |
| 8 |
// would simply never run. Same reasoning as post-import-feedback's entry. |
| 9 |
module.exports = { |
| 10 |
entry: { |
| 11 |
'deactivation-survey': path.resolve(__dirname, 'assets/js/index.tsx'), |
| 12 |
'deactivation-survey-style': path.resolve(__dirname, 'assets/scss/index.scss'), |
| 13 |
}, |
| 14 |
}; |
| 15 |
|