Giter Club home page Giter Club logo

Comments (6)

loveky avatar loveky commented on May 20, 2024

准备以什么作为version呢

from rocketact.

beanlee avatar beanlee commented on May 20, 2024

准备以什么作为version呢

是 PLUS 业务他们的场景,不用 hash,全用 jdf 那种打包后的路径作为上线产物,我今天想了想直接做成一个插件,不用小火箭本身提供该功能。

https://www.npmjs.com/package/rocketact-plugin-bundle-with-version

另外还写了一个 他们要用的 banner plugin 的,都差不多

https://www.npmjs.com/package/rocketact-plugin-bundle-with-banner

from rocketact.

beanlee avatar beanlee commented on May 20, 2024

准备以什么作为version呢

就以 package.json 中的 version 字段打包,bundle 时追加在 publicPath 后。

from rocketact.

loveky avatar loveky commented on May 20, 2024

准备以什么作为version呢

就以 package.json 中的 version 字段打包,bundle 时追加在 publicPath 后。

然后把文件名中的hash去掉么?怎么保证 manifest,vendor和app 三个js的一致性呢,

from rocketact.

beanlee avatar beanlee commented on May 20, 2024

准备以什么作为version呢

就以 package.json 中的 version 字段打包,bundle 时追加在 publicPath 后。

然后把文件名中的hash去掉么?怎么保证 manifest,vendor和app 三个js的一致性呢,

哈哈,不用保证 manifest, verdor, app 的一致性,他们的需求是每次都更新版本号,打包出来的新版本路径下文件全量上线。

from rocketact.

beanlee avatar beanlee commented on May 20, 2024

通过插件解决 https://www.npmjs.com/package/rocketact-plugin-bundle-with-version

from rocketact.

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.