From 0eaba85c9d94270cddf0e49313faaafb28f6b156 Mon Sep 17 00:00:00 2001 From: JustCarmen Date: Sun, 15 Dec 2024 22:10:32 +0100 Subject: [PATCH] Seperate css from js in build folder --- webpack.mix.distribution.js | 4 ++-- webpack.mix.theme.js | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/webpack.mix.distribution.js b/webpack.mix.distribution.js index 434364e..a7b4d31 100644 --- a/webpack.mix.distribution.js +++ b/webpack.mix.distribution.js @@ -24,9 +24,9 @@ const FileManagerPlugin = require('filemanager-webpack-plugin'); mix .setPublicPath('./dist') - .copyDirectory(config.build_dir, config.dist_dir + '/resources/css') + .copyDirectory(config.build_dir + '/css', config.dist_dir + '/resources/css') + .copyDirectory(config.build_dir + '/js', config.dist_dir + '/resources/js') .copyDirectory(config.public_dir + '/fonts', config.dist_dir + '/resources/fonts') - .copyDirectory(config.public_dir + '/js', config.dist_dir + '/resources/js') .copyDirectory(config.public_dir + '/lang', config.dist_dir + '/resources/lang') .copyDirectory(config.public_dir + '/views', config.dist_dir + '/resources/views') .copy('JustlightTheme.php', config.dist_dir) diff --git a/webpack.mix.theme.js b/webpack.mix.theme.js index a5c61e5..ee7588d 100644 --- a/webpack.mix.theme.js +++ b/webpack.mix.theme.js @@ -27,9 +27,9 @@ const postcssCustomProperties = require('postcss-custom-properties')(); if(process.env.NODE_ENV === 'production') { mix - .styles(config.public_dir + '/css/justlight.min.css', config.build_dir + '/justlight.min.css') - .styles(config.public_dir + '/css/justblack.min.css', config.build_dir + '/justblack.min.css') - .minify(config.public_dir + '/js/vendor.min.js', config.build_dir + '/vendor.min.js') + .styles(config.public_dir + '/css/justlight.min.css', config.build_dir + '/css/justlight.min.css') + .styles(config.public_dir + '/css/justblack.min.css', config.build_dir + '/css/justblack.min.css') + .minify(config.public_dir + '/js/vendor.min.js', config.build_dir + '/js/vendor.min.js') } else { mix .setPublicPath('./')