npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

feather2-postpackager-offline

v1.0.1

Published

feather2 离线插件

Downloads

4

Readme

feather2-postpackager-offline

feather2的资源离线方案,可以用于app下的离线html等hybrid应用。

使用

npm install feather2-postpackager-offline
//conf.js
feather.config.get('postpackager').push('offline');

本地预览,注:本地预览时,url仍为localhost,可方便使用本地的一些数据mock

feather2 release

正式编译时,则需要将static和view的代码放在同一个目录

//conf/deploy/xxx.js 配置文件
module.exports = [
    {
        from: '/view',
        to: '../dist/',  //view和static需要同一目录
        subOnly: true
    },

    {
        from: '/static',
        to: '../dist/',  //view和static需要同一目录
        subOnly: true
    }
];
feather2 release -d xxx

注:js中引用图片时尽量不要使用__uri语法,而采用__inline转换为base64,原因因如果使用__uri后,js文件可能会被多个html文件引用,造成无法准确使用相对路径进行定位

var img = new Image();
img.src = __inline('./1.png'); //不要使用__uri('./1.png')
document.body.appendChild(img);