Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

webpackConfig.module.loaders 加载font-woff怎么使用?? #27

Open
shenggen1987 opened this issue Oct 21, 2016 · 0 comments
Open

Comments

@shenggen1987
Copy link

webpackConfig.module.loaders.forEach(function (loader, index) {
if (typeof loader.test === 'function' && loader.test.toString().indexOf('.less$') > -1) {
loader.test = /.dont.exist.file/;
}
if (loader.test.toString() === '/.module.less$/') {
loader.test = /.less$/;
}

});
以前都是这样加载的
loaders: [
{test: /.less$/, loader: "style!css!less", exclude: /node_modules|bower_components/},
{test: /.woff(2)$/, loader: "url?limit=10000&minetype=application/font-woff"}
]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant