Coder Social home page Coder Social logo

mysticatea / appcache-manifest Goto Github PK

View Code? Open in Web Editor NEW
25.0 3.0 3.0 77 KB

A CLI tool to generate HTML5 Application Cache Manifest.

License: MIT License

JavaScript 100.00%
javascript html web cli cli-command offline application-cache development appcache appcache-manifest

appcache-manifest's People

Contributors

mysticatea avatar virtualpatterns avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

virtualpatterns

appcache-manifest's Issues

Prefix doesn't have to start with '/'

I wan't my paths in the manifest to be relative. They should start with './' or nothing at all. However, I can't do this since the default is '/' and passing any other value than that doesn't work.

Never Exits

appcache-manifest-fixer never exits when the output file is specified.

Fixer cannot overwrite source file

The appcache-manifest-fixer cannot overwrite the source file. If you attempt to do it, the source file will be empty afterwards.

I call the appcache-manifest-fixer like this:

appcache-manifest-fixer index.html -o index.html

Instead of adding the manifest-attribute, index.html is now completely empty.

Getting error mesage

bash-3.2$ appcache-manifest './dist/**.{png,svg,jpg,js,html,css,json,woff,ttf,woff2,eot}' -o ./index.appcache
/Users/jkarttunen/.nvm/versions/node/v4.2.3/bin/appcache-manifest: line 1: use strict: command not found
/Users/jkarttunen/.nvm/versions/node/v4.2.3/bin/appcache-manifest: line 3: syntax error near unexpected token `exports,'
/Users/jkarttunen/.nvm/versions/node/v4.2.3/bin/appcache-manifest: line 3: `Object.defineProperty(exports, "__esModule", {'

Add a method using a Readable Stream interface

When using the library inside a bundler or workflow plugin, the bundler might have its own representation of the files that should be put into the appcache manifest. Example: parcel bundler.
For these us cases it would be nice to have a method that receives stream interfaces instead of string globs.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.