webpack: allow to build and watch js

This commit is contained in:
Simon Vieille
2025-04-04 20:12:52 +02:00
parent 5f5ce968c2
commit 4f261c434d
2 changed files with 102 additions and 73 deletions
+19
View File
@@ -0,0 +1,19 @@
module.exports = {
scss: {
test: /\.scss$/,
use: ['style-loader', 'css-loader', 'sass-loader'],
},
vue: {
test: /\.vue$/,
loader: 'vue-loader',
},
js: {
test: /\.js$/,
loader: 'babel-loader',
exclude: /node_modules/,
},
assets: {
test: /\.(png|jpe?g|gif|svg|woff2?|eot|ttf)$/,
type: 'asset/inline',
},
}