paint-brush
Set Up Webpack 5 To Work With Static Filesby@matheus4lves
21,096 reads
21,096 reads

Set Up Webpack 5 To Work With Static Files

by Matheus Alves6mNovember 26th, 2021
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow
EN

Too Long; Didn't Read

By default webpack only understands JavaScript. Therefore, if you want to work with static files, we need to expand it's functionality through loaders and plugins. If you want to work with HTML, you need to set up the html-loader and the html-webpack-plugin. If you want to work with CSS, you need to set up the css-loader and the style-loader. For working with images, starting from webpack 5, you can simply use the built in Asset Modules.

Companies Mentioned

Mention Thumbnail
Mention Thumbnail
featured image - Set Up Webpack 5 To Work With Static Files
Matheus Alves HackerNoon profile picture
Matheus Alves

Matheus Alves

@matheus4lves

(Almost) A computer engineer, full-stack web developer aspirant, technical writer, Brazilian.

Learn More
LEARN MORE ABOUT @MATHEUS4LVES'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Matheus Alves HackerNoon profile picture
Matheus Alves@matheus4lves
(Almost) A computer engineer, full-stack web developer aspirant, technical writer, Brazilian.

TOPICS

Languages

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite