From f138745a0f80c2732947f62e7ddfd88e789cb3df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=ABl=20van=20Noord?= <13665637+DanielNoord@users.noreply.github.com> Date: Tue, 16 Mar 2021 13:31:30 +0100 Subject: [PATCH] Formatting changes --- webpack.config.js | 27 +++++++++++++++------------ 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/webpack.config.js b/webpack.config.js index 41e981f..7142da3 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -1,19 +1,22 @@ /** 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 = function (env) { - return { - mode: 'production', - devtool: env.production ? 'source-map' : 'eval-source-map', - entry: { - CookieMonster: { import: './src/CookieMonster.js', filename: './CookieMonster.js' }, - }, - output: { - filename: 'CookieMonster.js', - path: path.resolve(__dirname, 'dist'), - }, - }; + return { + mode: 'production', + devtool: env.production ? 'source-map' : 'eval-source-map', + entry: { + CookieMonster: { + import: './src/CookieMonster.js', + filename: './CookieMonster.js', + }, + }, + output: { + filename: 'CookieMonster.js', + path: path.resolve(__dirname, 'dist'), + }, + }; };