Nuxt.js Npm Build and Copy Files

July 26, 2021

Edit package.json

{
  "scripts": {
    "copy": "cp nuxtssr.config.js /project_name/public && cp static/robots.txt /project_name/public",
    "build": "nuxt build && npm run copy",
  },
}
This work is licensed under a
Creative Commons Attribution-NonCommercial 4.0 International License.