nuxt build 打包成功,但是没有build这个目录

[root@VM_11_154_centos ffn]# 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]# 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]# cd build
-bash: cd: build: 没有那个文件或目录
[root@VM_11_154_centos ffn]# 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]# 

build文件在哪里????谢谢,很郁闷,本地打包没问题,在服务器打包时候就有问题了,昨天还好好的。

阅读 9.8k
4 个回答

.nuxt/dist

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题
宣传栏