mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-12-22 07:42:41 +00:00
Update webpack config
This commit is contained in:
parent
26f92c93ce
commit
ded660b2c4
1 changed files with 30 additions and 24 deletions
6
webpack.mix.js
vendored
6
webpack.mix.js
vendored
|
@ -1,7 +1,9 @@
|
|||
let mix = require('laravel-mix');
|
||||
const fs = require("fs");
|
||||
const path = require("path");
|
||||
|
||||
mix.before(() => {
|
||||
fs.rmSync('public/css', { 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({
|
||||
optimization: {
|
||||
providedExports: false,
|
||||
|
|
Loading…
Reference in a new issue