search

Home  >  Q&A  >  body text

node.js - 输出 npm run build 页面不显示 npm run dev 是可以的

命令行输出 npm run dev 页面可以显示
但输出npm run build 本地服务器一片空白

图2为命令行

怀疑是配置的路径问题 命令行打包的文件 找不到 求大神指点

ringa_leeringa_lee2786 days ago329

reply all(3)I'll reply

  • PHPz

    PHPz2017-04-17 15:51:31

    The command shows that the file has been generated. Is there something wrong with the publicPath configuration?

    reply
    0
  • 怪我咯

    怪我咯2017-04-17 15:51:31

    These two commands are defined in the scripts object under the package.json file. You can see how they are written

    reply
    0
  • 黄舟

    黄舟2017-04-17 15:51:31

    What’s your problem? I’m the same as you

    reply
    0
  • Cancelreply