Files
CookieMonster/webpack.config.js
Daniël van Noord d429719a57 Added comments
2021-03-09 23:31:02 +01:00

24 lines
956 B
JavaScript

/** We know this is not how Webpack should be used, but we are slowly transferring our code.
* For now this is how at least start to create a structure that allows us to transfer towards
* more modular code. Any help is highly appreciated.
*/
const path = require('path');
module.exports = {
mode: 'production',
entry: {
cache: { import: './src/Cache/Cache.js', filename: './Cache.js' },
config: { import: './src/Config/Config.js', filename: './Config.js' },
data: { import: './src/Data/Data.js', filename: './Data.js' },
disp: { import: './src/Disp/Disp.js', filename: './Disp.js' },
footer: { import: './src/Footer/Footer.js', filename: './Footer.js' },
header: { import: './src/Header/Header.js', filename: './Header.js' },
main: { import: './src/Main/Main.js', filename: './Main.js' },
sim: { import: './src/Sim/Sim.js', filename: './Sim.js' },
},
output: {
filename: 'Data.js',
path: path.resolve(__dirname, 'dist'),
},
};