Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2530154
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
View Options
diff --git a/src/webpack.mix.js b/src/webpack.mix.js
index 95c51c22..5599af72 100644
--- a/src/webpack.mix.js
+++ b/src/webpack.mix.js
@@ -1,52 +1,39 @@
/*
|--------------------------------------------------------------------------
| Mix Asset Management
|--------------------------------------------------------------------------
|
| Mix provides a clean, fluent API for defining some Webpack build steps
| for your Laravel application. By default, we are compiling the Sass
| file for the application as well as bundling up all the JS files.
|
*/
const fs = require('fs');
const glob = require('glob');
const mix = require('laravel-mix');
mix.webpackConfig({
-/*
- output: {
- publicPath: process.env.MIX_ASSET_PATH,
- // Make sure chunks are also put into the public/js/ folder
- chunkFilename: "js/[name].js"
- },
- optimization: {
- splitChunks: {
- // Disable chunking, so we have one chunk.js instead of chunk.js + vendor~chunk.js
- maxAsyncRequests: 1
- }
- },
-*/
resolve: {
alias: {
'jquery$': 'jquery/dist/jquery.slim.js',
}
}
})
mix.js('resources/js/user.js', 'public/js').vue()
.js('resources/js/admin.js', 'public/js').vue()
glob.sync('resources/themes/*/', {}).forEach(fromDir => {
const toDir = fromDir.replace('resources/themes/', 'public/themes/')
mix.sass(fromDir + 'app.scss', toDir)
.sass(fromDir + 'document.scss', toDir);
fs.stat(fromDir + 'images', {}, (err, stats) => {
if (stats) {
mix.copyDirectory(fromDir + 'images', toDir + 'images')
}
})
})
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Tue, Feb 3, 7:22 AM (1 d, 11 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
427132
Default Alt Text
(1 KB)
Attached To
Mode
R2 kolab
Attached
Detach File
Event Timeline
Log In to Comment