webpack Flashcards
What is Webpack?
allows for one to write modules that can handle resources and assets at the same time.
take a bunch of javascript files combine into one
How do you add a devDependency to a package?
npm install –save-dev (name of)
npm install –save-dev webpack
npm install webpack –save-dev
What is an NPM script?
commands or string of commands that are stored in a project’s package.json file under scripts.
How do you execute Webpack with npm run?
npm run (script name)
How are ES Modules different from CommonJS modules?
ES modules allow for es6 modules to go beyond commonJS and AMD, while having a format that CJS and AMD people can use
CJS uses modules.exports / require
es modules use import / export statements
What kind of modules can Webpack support?
ecmasCRIPT, cOMMONjs amd