Formatting changes
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
/** We know this is not how Webpack should be used, but we are slowly transferring our code.
|
/** 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
|
* 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.
|
* more modular code. Any help is highly appreciated.
|
||||||
*/
|
*/
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
|
|
||||||
module.exports = function (env) {
|
module.exports = function (env) {
|
||||||
@@ -9,7 +9,10 @@ module.exports = function (env) {
|
|||||||
mode: 'production',
|
mode: 'production',
|
||||||
devtool: env.production ? 'source-map' : 'eval-source-map',
|
devtool: env.production ? 'source-map' : 'eval-source-map',
|
||||||
entry: {
|
entry: {
|
||||||
CookieMonster: { import: './src/CookieMonster.js', filename: './CookieMonster.js' },
|
CookieMonster: {
|
||||||
|
import: './src/CookieMonster.js',
|
||||||
|
filename: './CookieMonster.js',
|
||||||
|
},
|
||||||
},
|
},
|
||||||
output: {
|
output: {
|
||||||
filename: 'CookieMonster.js',
|
filename: 'CookieMonster.js',
|
||||||
|
|||||||
Reference in New Issue
Block a user