ElementUI / element-in-laravel-starter

Laravel Project with Vue2 and Element
731 stars 154 forks source link

Change font directory? #25

Closed blablahaha closed 7 years ago

blablahaha commented 7 years ago

Hi,

How to change the default fonts directory?

After npm run dev, it automatically moves fonts to the path like:

public/fonts/vendor/element-ui/packages/theme-default/src/

blablahaha commented 7 years ago

I found the solution

mix.options({
        processCssUrls: false,
});
@font-face {
  font-family: element-icons;
  src: url(../fonts/element-icons.woff?t=1472440741) format('woff'), 
url(../fonts/element-icons.ttf?t=1472440741) format('truetype');
  font-weight: 400;
  font-style: normal
}