lesson-02 base setup

This commit is contained in:
Primakov Alexandr Alexandrovich
2024-10-04 11:44:01 +03:00
commit 7eb2fb7326
11 changed files with 1555 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
const path = require('node:path');
module.exports = {
entry: './src/index.js',
output: {
path: path.resolve(__dirname, 'dist'),
filename: 'bundle.js',
publicPath: '/dist/',
assetModuleFilename: 'images/[hash][ext][query]'
},
module: {
rules: [
{
test: /\.(png|svg|jpg|jpeg|gif)$/i,
type: 'asset/resource',
},
{
test: /\.txt$/i,
type: 'asset/source',
}
],
},
};