I’m facing an issue with viewing the svg elements in production mode, it worked totally fine in development mode (localhost). Me and my team are suspecting it is the issue with the gulp.
<img src="assets/logo.svg" alt="Logo">
gulp.js
const gulp = require('gulp');
const inline = require('gulp-inline');
const uglify = require('gulp-uglify');
const minifyCss = require('gulp-minify-css');
const autoprefixer = require('gulp-autoprefixer');
gulp.task('default', function(done) {
gulp.src('../../dist/apps/index.html')
.pipe(inline({
base: 'public/',
js: function() { return uglify(); },
css: function() { return minifyCss().pipe(autoprefixer()); }
}))
.pipe(gulp.dest('../../dist/apps/template'));
// Put your default task code here
done();
});