New 3 Flashcards

1
Q

Webpack itself only understands

A

JavaScript files

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Teach Webpack to transform non-JavaScript file into their JavaScript equivalents with

A

loaders

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Webpack is a popular

A

module bundler

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

a module bundler is

A

a tool for bundling source code in convenient chunks and for loading that code from a server into a browser

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

A bundle is a JavaScript file that incorporates

A

assets that belong together and should be served to the client in a response to a single file request

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

A bundle can include

A

JavaScript, CSS styles, HTML, and almost any other kind of file

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Webpack roams over

A

your application source code, looking for import statements, building a dependency graph, and emitting one or more bundles

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

With plugins and rules, Webpack can

A

preprocess and minify different non-JavaScript files such as TypeScript, SASS, and LESS files

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What are entry files?

A

You supply Webpack with one or more entry files and let it find and incorporate the dependencies that radiate from those entries

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

For webpack output, it’s preferable to separate ___ from ___

A

the volatile application app code from comparatively stable vendor code modules

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

To tell Webpack what belongs in the vendor bundle

A

add a vendor.ts file that only imports the application’s third-party modules

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

To reference a CSS include from TS

A

import ‘uiframework/dist/uiframework.css’;

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

How to chain two loaders together

A

loaders: ‘style-loader!css-loader’

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

You’ll need ___ to run an Angular application in most browsers as explained in ___

A

polyfills / the Browser Support guide

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Polyfills should be bundled separately from

A

the application and vendor bundles

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Enable TypeScript webpack loader

A

npm install ts-loader

17
Q

most import statements don’t mention the extension at all. Tell Webpack to resolve extension-less file requests by looking for matching files with .ts extension or .js extension

A

resolve: {
extensions: [‘.ts’, ‘.js’]
}