Webpack 5 Asset modules not creating images to dist folder when using handlebars-loader. How do i get it to output the images?
This is my config file, I have tried with html-loader it works fine for .html files but i’m now trying to learn and use handlebarsjs its not working the same. I've also tried using the preprocessor option for html-loader whereby i created a function to read .hbs files but I keep getting errors. const path = require('path'); const HtmlWebpackPlugin = require('html-webpack-plugin'); module.exports = { entry: './src/index.js', plugins: [ new HtmlWebpackPlugin({ title: 'Output Management', template: './src/index.hbs' }), ], devtool: 'inline-source-map', devServer: { static: './dist', hot: true, },
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.