copy-webpack-options.js 368 字节
Newer Older
fxy060608's avatar
fxy060608 已提交
1 2
const assetsDir = 'static'

fxy060608's avatar
fxy060608 已提交
3
function getCopyWebpackPluginOptions (manifestPlatformOptions, vueOptions) {
fxy060608's avatar
fxy060608 已提交
4 5 6 7 8 9
  const {
    getPlatformCopy
  } = require('@dcloudio/uni-cli-shared/lib/platform')

  return getPlatformCopy()({
    assetsDir,
fxy060608's avatar
fxy060608 已提交
10 11
    manifestPlatformOptions,
    vueOptions
fxy060608's avatar
fxy060608 已提交
12 13 14 15 16 17 18
  })
}

module.exports = {
  assetsDir,
  getCopyWebpackPluginOptions
}