diff --git a/netlify.toml b/netlify.toml index 6fc7033..75fb39b 100644 --- a/netlify.toml +++ b/netlify.toml @@ -1,3 +1,3 @@ [build] - command = "yarn prod && vendor/bin/sculpin generate -e prod" + command = "composer prod && yarn prod && cp -R source/build output_prod" publish = "output_prod" diff --git a/webpack.mix.js b/webpack.mix.js index 494ba1e..9154ecd 100644 --- a/webpack.mix.js +++ b/webpack.mix.js @@ -4,17 +4,11 @@ require('laravel-mix-purgecss'); require('laravel-mix-tailwind'); mix.disableNotifications() - .sass('assets/sass/app.sass', "source/build/css") + .sass('assets/sass/app.sass', 'source/build/css') .js(['node_modules/vue/dist/vue.js', 'assets/js/app.js'], 'source/build/js/all.js') .tailwind() - .options({ - processCssUrls: false, + .purgeCss({ + globs: [ + path.join(__dirname, 'output_*/**/*.{html,js}'), + ], }) - // .purgeCss({ - // globs: [ - // path.join(__dirname, 'output_prod/**/*.html'), - // ], - // }) - .options({ - processCssUrls: false - });