Git Product home page Git Product logo

Comments (8)

NekR avatar NekR commented on May 21, 2024

Hi @Zuzon

How do you run it? From server/webpack-dev-server/direct from disk?

from offline-plugin.

NekR avatar NekR commented on May 21, 2024

Also, if it's possible, can you show what SW/AppCache plugin generates for you?

from offline-plugin.

Zuzon avatar Zuzon commented on May 21, 2024

appcache:

CACHE MANIFEST
#ver:v1

CACHE:
../0ac1be82bd79e6be47a32376d286480f.png
../polyfills.bundle.js
../vendor.bundle.js
../main.bundle.js
...

How do you run it?

simply open index.html as file

in index.html
<script src="polyfills.bundle.js"></script><script src="vendor.bundle.js"></script><script src="main.bundle.js"></script></body>

scripts are in same directory with index.html

from offline-plugin.

NekR avatar NekR commented on May 21, 2024

SW is not supposed to work this way. AppCache, even it can, there is not reason for it to work. I tested path generation only with usage on servers, so may fail with file:.

Btw, what is the problem running/testing it with server? I use http-server which is pretty easy to work with:

npm install http-server -g # install
http-server # run in output folder

from offline-plugin.

Zuzon avatar Zuzon commented on May 21, 2024

my project is a bit specific.
i need to create a desktop .net app, on this app i integrate gecko browser engine and also that engine runs my web app in offline without webserver

from offline-plugin.

NekR avatar NekR commented on May 21, 2024

@Zuzon hmm.. okay, I will check file: support. But, are you sure AppCache is working with file: protocol?

from offline-plugin.

Zuzon avatar Zuzon commented on May 21, 2024

NekR, i found a reason of path problem, because i have baseUrl with slash set (/), with empty string all works perfectly.
I'm sorry to have kept spending your time.

from offline-plugin.

NekR avatar NekR commented on May 21, 2024

@Zuzon no problem! Glad that it works for you know. Feel free to open another issue if something :-)

from offline-plugin.

Related Issues (20)

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.