mCaptcha/frontend/webpack.common.js
2021-04-03 17:18:18 +05:30

26 lines
433 B
JavaScript

const path = require('path');
module.exports = {
entry: {
main: './static/js/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',
},
},
},
],
},
};