
Security News
US Government Forces Anthropic to Pull Claude Fable Days After Launch
Anthropic says the directive cited national security concerns over a narrow jailbreak, but offered no specific technical details.
mobile_activity_tool
Advanced tools
#活动开发项目 正确启动姿势
//开发模式
npm run dev
//打包模式
npm run build
//区分项目打包和开发模式命令
npm run dev-<name>
npm run build-<name>
//举例
"scripts": {
"dev-toolInit": "node build/dev-server.js toolInit",
"build-toolInit": "node build/build.js toolInit"
}
//雪碧图打包 (简单版)
"scripts":{
"sprites" : "node build/sprite.js <name>", //<name>输入项目名 如:toolInit
}
//自动化发布静态资源到CDN服务器
"upload": "node build/upload.js <name>" //输入项目名 如:toolInit
//配置
module.exports = {
"uname" : "", //账号
"upwd" : "" //密码
};
//引用
var login = require('');
// 示例配置项 -- port:端口;url:静态资源服务地址;ver:版本号
// url的值就这样写 不要写(http)协议头什么的 最后也不需要"/"号
// 具体使用看文件使用方法
{
port : 3666,
url : 'm.elongstatic.com/web/activitys',
ver : 'v1'
}
上传目录规则 prodConfig中配置项目的url+年+月+项目名+版本号;比如:m.elongstatic.com/web/activitys/2017/01/v1/index.html 上传规则就是往咱们efs服务器里上传资源
| 文件名 | 路径 | 描述 |
|---|---|---|
| assets | 项目名/assets | 当前项目静态资源目录,存放一些图片、脚本、字体和媒体之类··· |
| assets/icons | 项目名/assets/icons | 存放准备做成sprite的icon图片,通过sprites命令生成 |
| assets/banner | 项目名/assets/banner | 放一些大图,如banner的 大背景的 |
| assets/img | 项目名/assets/img | 合成的sprite图片、其它类型的图片放到这里 |
| assets/* | 项目名/assets/* | 其它类型的资源请自行创建 |
| components | 项目名/components | 当前项目通用组件库 |
| modules | 项目名/modules | 一些模块功能、服务接口配置、路由配置等 |
| modules/api.js | 项目名/modules/api.js | 业务所用到的ajax请求链接 |
| modules/server.js | 项目名/modules/server.js | 业务所用到的ajax请求,封装方法请写到这里 |
| modules/pageRouter.js | 项目名/modules/pageRouter.js | 业务之间的路由配置,注意配置name,调用的时候调用对应name |
| pages | 项目名/pages | 就业务模块了 经典的.vue存放地儿 |
| scss | 项目名/scss/ | scss文件存放地 比如引用第三方的scss 或者独立出来的scss都可以写到这 |
| scss | 项目名/scss/sprite_icon.scss | sprites命令创建的雪碧图sass文件 |
FAQs
vue a product html5
The npm package mobile_activity_tool receives a total of 4 weekly downloads. As such, mobile_activity_tool popularity was classified as not popular.
We found that mobile_activity_tool demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Anthropic says the directive cited national security concerns over a narrow jailbreak, but offered no specific technical details.

Security News
A network of 152 Chrome live wallpaper extensions hid ad tracking and made extension-driven traffic look like Google search clicks.

Company News
Socket’s first CISO brings deep experience securing high-growth SaaS companies as open source supply chain threats accelerate.