1
0
Fork 1
mirror of https://github.com/pixelfed/pixelfed.git synced 2024-12-23 00:05:29 +00:00

Update webpack config

This commit is contained in:
Daniel Supernault 2024-04-20 00:55:21 -06:00
parent 26f92c93ce
commit ded660b2c4
No known key found for this signature in database
GPG key ID: 23740873EE6F76A1

6
webpack.mix.js vendored
View file

@ -1,7 +1,9 @@
let mix = require('laravel-mix'); let mix = require('laravel-mix');
const fs = require("fs"); const fs = require("fs");
const path = require("path");
mix.before(() => { mix.before(() => {
fs.rmSync('public/css', { recursive: true, force: true });
fs.rmSync('public/js', { recursive: true, force: true }); fs.rmSync('public/js', { recursive: true, force: true });
}); });
@ -57,6 +59,10 @@ mix.options({
} }
} }
}) })
mix.alias({
'@': path.join(__dirname, 'resources/assets/components'),
'~': path.join(__dirname, 'resources/assets/js/components'),
});
mix.webpackConfig({ mix.webpackConfig({
optimization: { optimization: {
providedExports: false, providedExports: false,