mCaptcha/frontend/webpack.common.js
2021-04-05 17:26:58 +05:30

25 lines
433 B
JavaScript

const path = require('path');
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',
},
},
},
],
},
};