Skip to content

Commit

Permalink
Seperate css from js in build folder
Browse files Browse the repository at this point in the history
  • Loading branch information
JustCarmen committed Dec 15, 2024
1 parent de05bda commit 0eaba85
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions webpack.mix.distribution.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
6 changes: 3 additions & 3 deletions webpack.mix.theme.js
Original file line number Diff line number Diff line change
Expand Up @@ -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('./')
Expand Down

0 comments on commit 0eaba85

Please sign in to comment.