美文网首页
webpack将程序打包到特定的目录

webpack将程序打包到特定的目录

作者: 皮卡乒乓 | 来源:发表于2018-06-01 15:45 被阅读0次

修改config下的index.js文件

build: {
    env: require('./prod.env'),
    index: path.resolve(__dirname, 'I:/Mypro/Documents/GitHub/jiawanlong.github.io/dist/index.html'),
    assetsRoot: path.resolve(__dirname, 'I:/Mypro/Documents/GitHub/jiawanlong.github.io/dist'),
    assetsSubDirectory: 'static',
    assetsPublicPath: './',
    productionSourceMap: true,
    productionGzip: false,
    productionGzipExtensions: ['js', 'css'],
    bundleAnalyzerReport: process.env.npm_config_report
  },

相关文章

网友评论

      本文标题:webpack将程序打包到特定的目录

      本文链接:https://www.haomeiwen.com/subject/jolksftx.html