ssmnydia / mpd-cli Goto Github PK
View Code? Open in Web Editor NEW多页面开发脚手架
License: MIT License
多页面开发脚手架
License: MIT License
M版页面开发需要有meta标签存在
<meta name="viewport" content="width=device-width, initial-scale=1.0,maximum-scale=1.0, user-scalable=0"/>
能否添加配置项用于配置meta表情,或者放出 html 模板?
无法打包编译svg,需要支持
编译速度有点慢,需要减少编译用时,优化一下
global: [
{ ishead: true, url: '/assets/lib/rem.min.js' }, // 编译后不会转换,/和./开头都是
{ ishead: true, url: '/assets/lib/jquery.min.js' }
]
会引起错误的路由示例:
// 已存在
/a_:id
// 以下多了 "/b" 的就会引入错误
/a_:id/b
在router.js
文件,给同一个页面指定了多个不同的路由地址会导致dev模式和build模式报错。
'sass-resources-loader'中 options.resources传入的路径错误,导致build时发生错误
Error:
Something wrong with provided resources.
Make sure 'options.resources' is String or Array of Strings with a valid file path.
at Object._default (/Users/cbh/.nvm/versions/node/v10.20.1/lib/node_modules/mpd-cli/node_modules/sass-resources-loader/lib/loader.js:58:18)
at runLoaders (/Users/cbh/.nvm/versions/node/v10.20.1/lib/node_modules/mpd-cli/node_modules/webpack/lib/NormalModule.js:316:20)
at /Users/cbh/.nvm/versions/node/v10.20.1/lib/node_modules/mpd-cli/node_modules/loader-runner/lib/LoaderRunner.js:367:11
at /Users/cbh/.nvm/versions/node/v10.20.1/lib/node_modules/mpd-cli/node_modules/loader-runner/lib/LoaderRunner.js:233:18
at context.callback (/Users/cbh/.nvm/versions/node/v10.20.1/lib/node_modules/mpd-cli/node_modules/loader-runner/lib/LoaderRunner.js:111:13)
at Object._default (/Users/cbh/.nvm/versions/node/v10.20.1/lib/node_modules/mpd-cli/node_modules/sass-resources-loader/lib/loader.js:60:12)
at Build.build (/Users/cbh/.nvm/versions/node/v10.20.1/lib/node_modules/mpd-cli/lib/webpack/build.js:15:13)
at process._tickCallback (internal/process/next_tick.js:68:7)
设置属性 ishead: true 之后,广告系统的加载代码在广告系统脚本引入之前被调用。
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.