字体压缩不生效,且提示找不到路径
m9rco opened this issue · comments
Shaowei Pu commented
module-conf.js
fontcompress : {
enable: true
},
project/index.less
@font-face {
font-family: 'benmoxueyuan';
src: url('benmoxuaeyuan.ttf');
font-weight: normal;
font-style: normal;
}
.main {
font-family: 'benmoxueyuan';
width: 100%;
margin-top: 50px;
font-size: 25px;
}
Shaowei Pu commented
发现没有用CommonJS, Uncaught ReferenceError: require is not defined
Shaowei Pu commented
要是支持 browserify
就好了 0.0