Giter VIP home page Giter VIP logo

Comments (7)

huyansheng3 avatar huyansheng3 commented on September 4, 2024

rewritePublicPath.js

 __webpack_public_path__ = '/';

import './rewritePublicPath.js'

// import UpgradeSharedWorker from './upgrade-notify.sharedworker.js';

#281 this can fix the problem, maybe is not a good solution.

from worker-loader.

alexander-akait avatar alexander-akait commented on September 4, 2024

What is webpack version?

from worker-loader.

huyansheng3 avatar huyansheng3 commented on September 4, 2024

wepack 4.x or 5.x has the same problem .

I just modify the project test case; then see the /outputs content @alexander-akait

from worker-loader.

alexander-akait avatar alexander-akait commented on September 4, 2024

you don't need this loader for webpack v5

from worker-loader.

alexander-akait avatar alexander-akait commented on September 4, 2024

We describe it in our readme https://github.com/webpack-contrib/worker-loader#readme

from worker-loader.

huyansheng3 avatar huyansheng3 commented on September 4, 2024

oader.option.public�Path only add to the webpack output.publicPath, can only set the worker.js full public path

from worker-loader.

mmazzarolo avatar mmazzarolo commented on September 4, 2024

@alexander-akait just a note: AFAIK Webpack 5 implementation of the loading mechanism doesn't support setting publicPath specific only to web-workers. It will always use whatever is set in output.publicPath (which might not be the same path you need for the worker).

from worker-loader.

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.