flyntwp / flynt-starter-theme

The starter theme for building Flynt projects.
MIT License
69 stars 4 forks source link

How to stop to add random number suffix to assets filenames such as css, js and images. #309

Closed forevereffort closed 4 years ago

forevereffort commented 4 years ago

Hello Flynt Team!

I love the Flynt theme. very perfect!!!. but I have a trouble. I am not expert for webpack.

so when I am run 'npm run build', images files have the random suffix after this action. for example, flynt\assets\images\facebook.svg will do like flynt\dist\assets\images\facebook-9f900a2130.svg

but I made the css like the following

.facebook {
    background-image: url('../assets/images/facebook.svg');
 }

as you see, after npm run build , site can't find the original facebook.svg file

what is the best way to fix my trouble

Regards

forevereffort commented 4 years ago

I found the solutions.

I commented rev function in gulpfile.js