zuzuchefe / guido Goto Github PK
View Code? Open in Web Editor NEW适用于cmd amd react jquery sass handlebars开发体系的构建工具,内置静态资源(样式、图片)内联外链、自动化雪碧图、资源to base64、资源文件注入模板、dev server、自定义路由等构建、调试、打包部署功能,减少同体系开发环境的重复配置
License: MIT License
适用于cmd amd react jquery sass handlebars开发体系的构建工具,内置静态资源(样式、图片)内联外链、自动化雪碧图、资源to base64、资源文件注入模板、dev server、自定义路由等构建、调试、打包部署功能,减少同体系开发环境的重复配置
License: MIT License
同步 [email protected] 更新,顺便重构代码
extract-text-webpack-plugin
=> mini-css-extract-plugin<=8kb
强制inline modeimage-webpack-loader
helperDirs
和 partialDirs
配置inlineRequires
规则ttf|eot|woff|woff2
字体文件处理例如
guido依赖着 `node-sass` `phantomjs-prebuilt `等组件,若安装缓慢报错,[点我](./npm-install-fail)。
不加.md
后缀,在 github.com 就跳到 404 了。
比如
.icon-level-1 {
background-image: url(../images/level-1.png?__sprite1); //参数形式可以另外定
}
.icon-level-2 {
background-image: url(../images/level-2.png?__sprite1);
}
.icon-level-3 {
background-image: url(../images/level-2.png?__sprite2);
}
生成
.icon-level-1 {
background-image: url(images/sprite-bbb.png);
xxx
}
.icon-level-2 {
background-image: url(images/sprite-bbb.png);
xxx
}
.icon-level-3 {
background-image: url(images/sprite-aaa.png);
xxx
}
有时候可以避免首屏的图标载入太慢。
或者有特殊模块可以另外载入处理
?__inline
处理文档:https://github.com/postcss/autoprefixer#options
Replace Autoprefixer browsers option to Browserslist config.
Use browserslist key in package.json or .browserslistrc file.
Using browsers option cause some error. Browserslist config
can be used for Babel, Autoprefixer, postcss-normalize and other tools.
If you really need to use option, rename it to overrideBrowserslist.
Learn more at:
https://github.com/browserslist/browserslist#readme
https://twitter.com/browserslist
多个css的在js里的引入顺序不同,就会提示这个警告,解决办法:
.....
v4.0.0 发布了吗, 可用于生产环境了?
v4里是可以扩展guido的webpack配置了?
createWebpackConfig.js
if (TypeOf.isObject(appWebpackConfig)) {
config = mergeWebpackConfig(config, appWebpackConfig);
config = addModules(config);
} else if (TypeOf.isFunction(appWebpackConfig)) {
config = addModules(config);
config = appWebpackConfig(config);
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.