You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/content/concepts/loaders.mdx
+4-3Lines changed: 4 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -16,6 +16,7 @@ contributors:
16
16
- lukasgeiter
17
17
- furkle
18
18
- jamesgeorge007
19
+
- textbook
19
20
---
20
21
21
22
Loaders are transformations that are applied to the source code of a module. They allow you to pre-process files as you `import` or “load” them. Thus, loaders are kind of like “tasks” in other build tools and provide a powerful way to handle front-end build steps. Loaders can transform files from a different language (like TypeScript) to JavaScript or load inline images as data URLs. Loaders even allow you to do things like `import` CSS files directly from your JavaScript modules!
Copy file name to clipboardExpand all lines: src/content/configuration/index.mdx
+18-17Lines changed: 18 additions & 17 deletions
Original file line number
Diff line number
Diff line change
@@ -17,6 +17,7 @@ contributors:
17
17
- EugeneHlushko
18
18
- bigdawggi
19
19
- anshumanv
20
+
- textbook
20
21
---
21
22
22
23
Out of the box, webpack won't require you to use a configuration file. However, it will assume the entry point of your project is `src/index.js` and will output the result in `dist/main.js` minified and optimized for production.
@@ -267,7 +268,7 @@ module.exports = {
267
268
// filename template for HMR chunks
268
269
hotUpdateGlobal: "hmrUpdateFunction", // string
269
270
// the name of the global variable used to load hot update chunks
270
-
sourcePrefix: "\\t", // string
271
+
sourcePrefix: "\t", // string
271
272
// prefix module sources in bundle for better readablitity
272
273
// but breaks multi-line template strings
273
274
hashFunction: "md4", // string (default)
@@ -286,7 +287,7 @@ module.exports = {
286
287
// rules for modules (configure loaders, parser options, etc.)
287
288
{
288
289
// Conditions:
289
-
test: /\\.jsx?$/,
290
+
test: /\.jsx?$/,
290
291
include: [
291
292
path.resolve(__dirname, "app")
292
293
],
@@ -302,18 +303,18 @@ module.exports = {
302
303
// - Try to avoid exclude and prefer include
303
304
// Each condition can also receive an object with "and", "or" or "not" properties
0 commit comments