How to add multiple different build points for scripts in rollupjs
How to add multiple input and output config files to rollup.config.js.
Where export default add an array [{[{…
The final version will be like this:
export default [[
{
input : ‘js / app.js’,
output: {
sourcemap: true,
file : ‘public / build / app.js’
},
},
{
input : ‘js / global.js’,
output: {
sourcemap: true,
file : ‘public / build / global.js’
}
}
]