rollup.config.web-view.js 540 字节
Newer Older
fxy060608's avatar
fxy060608 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
const path = require('path')
const babel = require('rollup-plugin-babel')
const alias = require('rollup-plugin-alias')
const uglify = require('rollup-plugin-uglify')
module.exports = {
  input: 'src/core/runtime/web-view/index.js',
  output: {
    name: 'uni',
    file: `dist/uni.webview.1.5.2.js`,
    format: 'umd'
  },
  plugins: [
    alias({
      'uni-platforms': path.resolve(__dirname, '../src/platforms')
    }),
    babel(),
    uglify.uglify({
      output: {
        ascii_only: true
      }
    })
  ]
}