import { DefaultTheme } from 'styled-components'
const myTheme: DefaultTheme = {
borderRadius: '5px',
colors: {
main: 'cyan',
secondary: 'magenta',
},
}
export { myTheme }
output: {
path: PATHS.build,
filename: './assets/js/[name].js',
// libraryTarget: 'umd',
libraryTarget: 'var',
// library: '[name]',
library: 'EntryPoint',
// umdNamedDefine: true,
libraryExport: 'MyModule'
},
entry: {
'_library': './scripts/library.js'
}
module.exports = {
run: function() {
console.log("run from library");
}
};
window.onload = function() {
console.log(EntryPoint);
console.log(MyModule.run());
};