Is there a way to build and inject a file inside a webpack loader?
Is there a way to build and inject a file inside a webpack loader? I want to make an HTML loader which replaces a string with a url of an emitted file i build inside the loader.
Webpack 5: Can’t get my webpack.config.js file setup to Handle Multiple HTML pages
I have a project using HTML, CSS, and JS which I’m trying to use webpack 5 to build separate folders for /pages and /posts for HTML, a folder for my json files (/json-files), and separate folders/files for CSS, /media, /json-files and bundle.js. All CSS references are in the HTML files (1 HTML file per page). My directory structure is as follows:
Webpack 5 Issue with Build Folders Not Being Created
I have a project using HTML, CSS, and JS which I’m trying to use webpack 5 to build separate folders for /pages and /posts for HTML, a folder for my json files (/json-files), and separate files for node_modules (/vendor) and my own custom js code (bundle.js).