Answer the question
In order to leave comments, you need to log in
Why generated js in one line?
I started to study webpack by screencast from learnjs
I have a standard config:
var path = require('path');
module.exports = {
entry: './src/scripts/main.js',
output: {
filename: 'bundle.js'
}
};
Answer the question
In order to leave comments, you need to log in
First, why? This code is not made to be read, it is to be executed by the computer. This code is called minified, which reduces the file size.
Secondly, the video most likely used an extension for ide, which represents a one-line code in a code with indents and hyphens.
But you don't need it. This file does not need to be touched at all.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question