Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

no runtime.xxxx.js built after execute "npm run build:prod" #199

Open
tangramor opened this issue Sep 15, 2022 · 0 comments
Open

no runtime.xxxx.js built after execute "npm run build:prod" #199

tangramor opened this issue Sep 15, 2022 · 0 comments

Comments

@tangramor
Copy link

$ npm version
{
  'go-admin': '2.0.6',
  npm: '6.14.15',
  ares: '1.18.1',
  brotli: '1.0.9',
  cldr: '39.0',
  icu: '69.1',
  llhttp: '2.1.4',
  modules: '83',
  napi: '8',
  nghttp2: '1.42.0',
  node: '14.18.3',
  openssl: '1.1.1l',
  tz: '2021a',
  unicode: '13.0',
  uv: '1.42.0',
  v8: '8.4.371.23-node.85',
  zlib: '1.2.11'
}

编译过程:

$ git clone https://github.com/go-admin-team/go-admin-ui.git
$ cd go-admin-ui
$ npm install
$ npm run build:prod

> [email protected] build:prod D:\workspace\Web\go-admin-ui
> vue-cli-service build


\  Building for production...Deprecation Warning: Using / for division outside of calc() is deprecated and will be removed in Dart Sass 2.0.0.

Recommendation: math.div(1, 5) or calc(1 / 5)

More info and automated migrator: https://sass-lang.com/d/slash-div

    ╷
489 │ $--group-option-flex: 0 0 (1/5) * 100% !default;
    │                            ^^^
    ╵
    node_modules\element-ui\packages\theme-chalk\src\common\var.scss 489:28      @import
    node_modules\element-ui\packages\theme-chalk\src\common\transition.scss 1:9  @import
    node_modules\element-ui\packages\theme-chalk\src\base.scss 1:9               @import
    node_modules\element-ui\packages\theme-chalk\src\index.scss 1:9              @import
    src\styles\element-variables.scss 25:9                                       root stylesheet

Deprecation Warning: Using / for division outside of calc() is deprecated and will be removed in Dart Sass 2.0.0.

Recommendation: math.div($--tooltip-arrow-size, 2) or calc($--tooltip-arrow-size / 2)

More info and automated migrator: https://sass-lang.com/d/slash-div

   ╷
32 │     margin-right: #{$--tooltip-arrow-size / 2};
   │                     ^^^^^^^^^^^^^^^^^^^^^^^^^
   ╵
    node_modules\element-ui\packages\theme-chalk\src\popper.scss 32:21         @content
    node_modules\element-ui\packages\theme-chalk\src\mixins\mixins.scss 74:5   b()
    node_modules\element-ui\packages\theme-chalk\src\popper.scss 4:1           @import
    node_modules\element-ui\packages\theme-chalk\src\select-dropdown.scss 3:9  @import
    node_modules\element-ui\packages\theme-chalk\src\select.scss 4:9           @import
    node_modules\element-ui\packages\theme-chalk\src\pagination.scss 4:9       @import
    node_modules\element-ui\packages\theme-chalk\src\index.scss 2:9            @import
    src\styles\element-variables.scss 25:9                                     root stylesheet

Deprecation Warning: Using / for division outside of calc() is deprecated and will be removed in Dart Sass 2.0.0.

Recommendation: math.div($--tooltip-arrow-size, 2) or calc($--tooltip-arrow-size / 2)

More info and automated migrator: https://sass-lang.com/d/slash-div

   ╷
51 │     margin-right: #{$--tooltip-arrow-size / 2};
   │                     ^^^^^^^^^^^^^^^^^^^^^^^^^
   ╵
    node_modules\element-ui\packages\theme-chalk\src\popper.scss 51:21         @content
    node_modules\element-ui\packages\theme-chalk\src\mixins\mixins.scss 74:5   b()
    node_modules\element-ui\packages\theme-chalk\src\popper.scss 4:1           @import
    node_modules\element-ui\packages\theme-chalk\src\select-dropdown.scss 3:9  @import
    node_modules\element-ui\packages\theme-chalk\src\select.scss 4:9           @import
    node_modules\element-ui\packages\theme-chalk\src\pagination.scss 4:9       @import
    node_modules\element-ui\packages\theme-chalk\src\index.scss 2:9            @import
    src\styles\element-variables.scss 25:9                                     root stylesheet

Deprecation Warning: Using / for division outside of calc() is deprecated and will be removed in Dart Sass 2.0.0.

Recommendation: math.div($--tooltip-arrow-size, 2) or calc($--tooltip-arrow-size / 2)

More info and automated migrator: https://sass-lang.com/d/slash-div

   ╷
70 │     margin-bottom: #{$--tooltip-arrow-size / 2};
   │                      ^^^^^^^^^^^^^^^^^^^^^^^^^
   ╵
    node_modules\element-ui\packages\theme-chalk\src\popper.scss 70:22         @content
    node_modules\element-ui\packages\theme-chalk\src\mixins\mixins.scss 74:5   b()
    node_modules\element-ui\packages\theme-chalk\src\popper.scss 4:1           @import
    node_modules\element-ui\packages\theme-chalk\src\select-dropdown.scss 3:9  @import
    node_modules\element-ui\packages\theme-chalk\src\select.scss 4:9           @import
    node_modules\element-ui\packages\theme-chalk\src\pagination.scss 4:9       @import
    node_modules\element-ui\packages\theme-chalk\src\index.scss 2:9            @import
    src\styles\element-variables.scss 25:9                                     root stylesheet

Deprecation Warning: Using / for division outside of calc() is deprecated and will be removed in Dart Sass 2.0.0.

Recommendation: math.div($--tooltip-arrow-size, 2) or calc($--tooltip-arrow-size / 2)

More info and automated migrator: https://sass-lang.com/d/slash-div

   ╷
89 │     margin-bottom: #{$--tooltip-arrow-size / 2};
   │                      ^^^^^^^^^^^^^^^^^^^^^^^^^
   ╵
    node_modules\element-ui\packages\theme-chalk\src\popper.scss 89:22         @content
    node_modules\element-ui\packages\theme-chalk\src\mixins\mixins.scss 74:5   b()
    node_modules\element-ui\packages\theme-chalk\src\popper.scss 4:1           @import
    node_modules\element-ui\packages\theme-chalk\src\select-dropdown.scss 3:9  @import
    node_modules\element-ui\packages\theme-chalk\src\select.scss 4:9           @import
    node_modules\element-ui\packages\theme-chalk\src\pagination.scss 4:9       @import
    node_modules\element-ui\packages\theme-chalk\src\index.scss 2:9            @import
    src\styles\element-variables.scss 25:9                                     root stylesheet

Warning: 33 repetitive deprecation warnings omitted.

-  Building for production...

 WARNING  Compiled with 2 warnings                                                                                                                                                 下午5:42:57

 warning 

asset size limit: The following asset(s) exceed the recommended size limit (244 KiB).
This can impact web performance.
Assets:
  html.worker.js (531 KiB)
  css.worker.js (809 KiB)
  ts.worker.js (3.48 MiB)
  fonts/remixicon.31d28485.eot (394 KiB)
  fonts/remixicon.888e61f0.ttf (394 KiB)
  img/remixicon.95138f36.svg (1.14 MiB)
  css/app.c9ff9aa7.css (252 KiB)
  js/app.89d461fc.js (295 KiB)
  js/chunk-0d42c9ba.44695f53.js (298 KiB)
  js/chunk-6cdb0e3c.1ed232f5.js (249 KiB)
  js/chunk-7062bc8c.cc610bb6.js (1.91 MiB)
  js/chunk-elementUI.43d1b0ae.js (657 KiB)
  js/chunk-libs.7fb3c961.js (1.27 MiB)
  js/chunk-libs.7fb3c961.js.gz (404 KiB)
  js/chunk-7062bc8c.cc610bb6.js.gz (677 KiB)
  ts.worker.js.gz (803 KiB)

 warning 

entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (244 KiB). This can impact web performance.
Entrypoints:
  app (2.54 MiB)
      js/chunk-elementUI.43d1b0ae.js
      css/chunk-libs.cbfaa4de.css
      js/chunk-libs.7fb3c961.js
      css/app.c9ff9aa7.css
      js/app.89d461fc.js


  File                                    Size                                                                     Gzipped

  dist\ts.worker.js                       3560.77 KiB                                                              806.54 KiB
  dist\js\chunk-7062bc8c.cc610bb6.js      1954.27 KiB                                                              678.25 KiB
  dist\js\chunk-libs.7fb3c961.js          1297.88 KiB                                                              405.37 KiB
  dist\css.worker.js                      808.91 KiB                                                               173.56 KiB
  dist\js\chunk-elementUI.43d1b0ae.js     656.84 KiB                                                               161.34 KiB
  dist\html.worker.js                     531.20 KiB                                                               131.91 KiB
  dist\js\chunk-0d42c9ba.44695f53.js      298.27 KiB                                                               76.77 KiB
  dist\js\app.89d461fc.js                 295.45 KiB                                                               98.83 KiB
  dist\js\chunk-6cdb0e3c.1ed232f5.js      248.96 KiB                                                               45.42 KiB
  dist\json.worker.js                     231.93 KiB                                                               65.81 KiB
  dist\editor.worker.js                   124.33 KiB                                                               39.08 KiB
  dist\js\chunk-2d0e2366.98db84c7.js      40.11 KiB                                                                11.38 KiB
  dist\js\chunk-95a5416c.9e0ade14.js      22.75 KiB                                                                8.01 KiB
  dist\js\chunk-b26a91dc.fcf6561b.js      17.52 KiB                                                                5.55 KiB
  dist\js\chunk-42dcf088.c3f70e35.js      12.46 KiB                                                                4.31 KiB
  dist\js\chunk-647121e7.e6b22bc7.js      11.83 KiB                                                                3.30 KiB
  dist\js\chunk-2d0cc0b6.8653fefc.js      3.14 KiB                                                                 1.54 KiB
  dist\js\chunk-b9d7a828.d4cee782.js      1.92 KiB                                                                 1.06 KiB
  dist\js\chunk-46875557.81bfa4d9.js      1.73 KiB                                                                 0.72 KiB
  dist\js\chunk-2d2105d3.a8373ecc.js      0.43 KiB                                                                 0.31 KiB
  dist\js\chunk-2d230fe7.062a098b.js      0.37 KiB                                                                 0.27 KiB
  dist\css\app.c9ff9aa7.css               252.34 KiB                                                               38.78 KiB
  dist\css\chunk-libs.cbfaa4de.css        102.79 KiB                                                               15.99 KiB
  dist\css\chunk-7062bc8c.31769366.css    28.41 KiB                                                                5.32 KiB
  dist\css\chunk-6cdb0e3c.6f3af06c.css    28.03 KiB                                                                5.83 KiB
  dist\css\chunk-b26a91dc.38b6ef26.css    7.25 KiB                                                                 1.78 KiB
  dist\css\chunk-42dcf088.8c77c934.css    6.92 KiB                                                                 1.73 KiB
  dist\css\chunk-46875557.13a7e89e.css    4.64 KiB                                                                 0.83 KiB
  dist\css\chunk-b9d7a828.fc20105f.css    0.73 KiB                                                                 0.29 KiB
  dist\css\chunk-647121e7.d17cd8fd.css    0.09 KiB                                                                 0.09 KiB

  Images and other types of assets omitted.

 DONE  Build complete. The dist directory is ready to be deployed.
 INFO  Check out deployment instructions at https://cli.vuejs.org/guide/deployment.html

无法在 dist/js 目录下找到 runtime.fa6530ca.js ,但是在生成的 index.html 里有引用:<link href="/js/runtime.fa6530ca.js" rel="preload" as="script">

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant