mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-19 04:23:55 +00:00
Laravel Vapor - attempt to fix a missing asset (Error 403)
This commit is contained in:
Vendored
+3
-3
@@ -17,7 +17,7 @@ const onError = (error) => {
|
||||
const sassOptions = {style: 'compressed'};
|
||||
|
||||
//cief todo: gulp
|
||||
const ASSET_URL = process.env.ASSET_URL;
|
||||
// const ASSET_URL = process.env.ASSET_URL;
|
||||
|
||||
gulp.task('vendorJs', () => {
|
||||
|
||||
@@ -33,7 +33,7 @@ gulp.task('vendorJs', () => {
|
||||
|
||||
gulp.task('vendorCss', () => {
|
||||
fancyLog('Compiling vendor CSS dependencies');
|
||||
fancyLog('ASSET_URL: ' + ASSET_URL);
|
||||
// fancyLog('ASSET_URL: ' + ASSET_URL);
|
||||
|
||||
return gulp.src(pkg.globs.vendorCss)
|
||||
.pipe(plugins.plumber({errorHandler: onError}))
|
||||
@@ -42,7 +42,7 @@ gulp.task('vendorCss', () => {
|
||||
.pipe(plugins.cleanCss())
|
||||
.pipe(plugins.replace('../../../font-awesome/', './'))
|
||||
.pipe(plugins.replace('../../jquery-ui-dist/', ''))
|
||||
.pipe(plugins.replace(/background-image:url\(\.\.\/\.\./g, `background-image:url(${ASSET_URL}../`)) //cief todo: gulp
|
||||
.pipe(plugins.replace(/background-image:url\(\.\.\/\.\./g, `background-image:url(`)) //cief todo: gulp
|
||||
.pipe(gulp.dest(pkg.paths.build.css));
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user