mirror of
https://github.com/DirectoryLister/DirectoryLister.git
synced 2025-09-02 02:12:37 +02:00
Fixed failing docker builds
This commit is contained in:
@@ -5,7 +5,7 @@ RUN composer install --working-dir /application --ignore-platform-reqs \
|
||||
--no-cache --no-dev --no-interaction
|
||||
|
||||
# Install and compile JavaScript assets
|
||||
FROM node:13.2 AS js-dependencies
|
||||
FROM node:13.6 AS js-dependencies
|
||||
COPY --from=php-dependencies /application /application
|
||||
RUN cd /application && npm install && npm run production
|
||||
|
||||
|
@@ -2,6 +2,8 @@ let mix = require('laravel-mix');
|
||||
let tailwindcss = require('tailwindcss');
|
||||
require('laravel-mix-purgecss');
|
||||
|
||||
mix.setPublicPath('.');
|
||||
|
||||
mix.sass('app/resources/sass/app.scss', 'app/dist/app.css').options({
|
||||
processCssUrls: false,
|
||||
postCss: [tailwindcss('tailwind.config.js')]
|
||||
@@ -21,6 +23,6 @@ mix.purgeCss({
|
||||
whitelistPatterns: [/^fa\-/]
|
||||
});
|
||||
|
||||
// if (mix.inProduction()) {
|
||||
// mix.version();
|
||||
// }
|
||||
if (mix.inProduction()) {
|
||||
mix.version();
|
||||
}
|
||||
|
Reference in New Issue
Block a user