Nuxt build was packaged successfully, but there is no build directory.

[root@VM_11_154_centos ffn]-sharp npm run build

> ffn@1.1.0 build /usr/local/src/ffn
> nuxt build

  nuxt:build Building... +0ms
  nuxt:build App root: /usr/local/src/ffn +0ms
  nuxt:build Generating /usr/local/src/ffn/.nuxt files... +0ms
  nuxt:build Generating files... +49ms
  nuxt:build Generating routes... +8ms
  nuxt:build Building files... +26ms
   100% 

Build completed in 22.453s



 WARNING  Compiled with 1 warnings                                      22:01:53

 warning  

asset size limit: The following asset(s) exceed the recommended size limit (300 kB).
This can impact web performance.
Assets: 
  vendor.eb86a84612e5ad9f6d59.js (336 kB)

Hash: eb86a84612e5ad9f6d59
Version: webpack 3.11.0
Time: 22468ms
                                   Asset       Size  Chunks                    Chunk Names
 layouts/default.092f758087fc1ce7c53f.js  791 bytes       6  [emitted]         layouts/default
                    img/logo.ddcb767.png    6.54 kB          [emitted]         
      pages/cart.4fcb4ef233d56af4a3e2.js    9.76 kB       1  [emitted]         pages/cart
  pages/allgoods.3df6dc0c131104bc88f3.js    9.48 kB       2  [emitted]         pages/allgoods
pages/user/index.ef58bdba18b20c64cc95.js    5.93 kB       3  [emitted]         pages/user/index
      pages/shop.3bcf34bd0ec477bddd21.js    8.26 kB       4  [emitted]         pages/shop
   pages/shoping.ee4d721c7f2dc42da8a6.js    5.58 kB       5  [emitted]         pages/shoping
      pages/deal.b40aca409d662a64be74.js    60.4 kB       0  [emitted]         pages/deal
     pages/index.6cf201f8d3371c016f72.js  982 bytes       7  [emitted]         pages/index
     pages/oauth.589c77ab3697eec9d049.js  852 bytes       8  [emitted]         pages/oauth
          vendor.eb86a84612e5ad9f6d59.js     336 kB       9  [emitted]  [big]  vendor
             app.5b567b7fb5f3f6511f19.js      98 kB      10  [emitted]         app
        manifest.eb86a84612e5ad9f6d59.js    1.76 kB      11  [emitted]         manifest
                                LICENSES  873 bytes          [emitted]         
 + 3 hidden assets

WARNING in asset size limit: The following asset(s) exceed the recommended size limit (300 kB).
This can impact web performance.
Assets: 
  vendor.eb86a84612e5ad9f6d59.js (336 kB)
Hash: bfd94396c5e8184da552
Version: webpack 3.11.0
Time: 2857ms
             Asset    Size  Chunks             Chunk Names
server-bundle.json  417 kB          [emitted]  
  nuxt:build Building done +27s
[root@VM_11_154_centos ffn]-sharp ls
app.js              layouts         package.json       README.md
assets              middleware      package-lock.json  server
backpack.config.js  node_modules    pages              static
components          nuxt.config.js  plugins            store
[root@VM_11_154_centos ffn]-sharp cd build
-bash: cd: build: 
[root@VM_11_154_centos ffn]-sharp ls
app.js              layouts         package.json       README.md
assets              middleware      package-lock.json  server
backpack.config.js  node_modules    pages              static
components          nuxt.config.js  plugins            store
[root@VM_11_154_centos ffn]-sharp 

build where is the file? Thank you, very depressed, local package no problem, in the server package when there is a problem, yesterday was fine.


.nuxt / dist


in the dist folder


I have also encountered this problem. Have you solved it yet? brother, have you solved it now


nuxt build project file analysis, see https://nickfu.com/p/150

Menu