Can I use webpack and its bundling-features with an openUI5 project? How?
I am aware of openui5_preload
and gulp-ui5-preload
but I want more than just putting all my code in one preloader-file: I like to "walk" all used dedendencies as well and bundle my whole openUI5-project in one file.
So far I was able to get webpack running with UI5:
npm i -g webpack
webpack.config.js:
module.exports = {
entry: {
packed: './webapp/Component.js'
},
output: {
path: './built',
filename: '[name].built.js'
},
resolve: {
modulesDirectories: [
'node_modules',
'bower_components'
]
}
};
and run webpack
a file built/packed.built.js
is created. But it just contains my component.js-file. Why?