frontend toolchain config and registration

This commit is contained in:
realaravinth
2021-04-02 20:35:06 +05:30
parent 584d43c34a
commit ecc0076cdd
23 changed files with 9320 additions and 197 deletions

View File

@@ -0,0 +1,25 @@
const path = require('path');
module.exports = {
entry: {
main: './src/index.js',
},
module: {
rules: [
{
test: /\.html$/,
use: ['html-loader'],
},
{
test: /\.(svg|png|jpg|gif)$/,
use: {
loader: 'file-loader',
options: {
name: '[name].[hash].[ext]',
outputPath: 'imgs',
},
},
},
],
},
};