mCaptcha/frontend/webpack.common.js
2021-04-06 21:34:11 +05:30

23 lines
402 B
JavaScript

module.exports = {
entry: {
main: './templates/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',
},
},
},
],
},
};