www/webpack.config.js

23 lines
517 B
JavaScript
Raw Normal View History

const path = require('path')
module.exports = {
mode: 'production',
entry: './lib/app/resources/assets/app/index.js',
output: {
filename: 'app.js',
path: path.resolve(__dirname, 'lib', 'app', 'resources', 'assets'),
},
module: {
rules: [
{
test: /\.css$/,
use: ['style-loader', 'css-loader'],
},
{
test: /\.ttf$/,
type: 'asset/resource'
},
],
},
}