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

关于根据版本号打包使用问题 #620

Closed
951565664 opened this issue Sep 30, 2017 · 1 comment
Closed

关于根据版本号打包使用问题 #620

951565664 opened this issue Sep 30, 2017 · 1 comment

Comments

@951565664
Copy link

@zuiidea 您好,使用verson功能报错,我是用脚手架新生产的一个项目,然后引入了您写的verson.js,依赖包js-beauty也对应安装了,在roadhog.js做了如下配置,

const path = require('path')
const { version } = require('./package.json')

export default {
  "entry": 'src/index.js',

  "publicPath": `/${version}/`,
  "outputPath": `./dist/${version}`,
  // 接口代理示例

  "env": {
    "development": {
      "extraBabelPlugins": [
        "dva-hmr",
        "transform-runtime"
      ]
    },
    "production": {
      "extraBabelPlugins": [
        "transform-runtime"
      ]
    }
  }
}

2

但是即使报错,dist能够按照版本分开了,不知道是什么原因。 #449

@zuiidea
Copy link
Owner

zuiidea commented Oct 11, 2017

拉一下最新代码,建议使用yarn install安装node模块

@zuiidea zuiidea closed this as completed Oct 11, 2017
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

2 participants