rollup.config.js 299 Bytes
Newer Older
陈帅's avatar
陈帅 committed
1 2 3
import json from 'rollup-plugin-json';
// rollup.config.js
export default {
4
  input: './all_mock.js',
陈帅's avatar
陈帅 committed
5
  output: {
6
    file: '../functions/mock/index.js',
陈帅's avatar
陈帅 committed
7 8 9 10 11 12 13 14 15 16
    format: 'umd',
    name: 'mock',
  },
  plugins: [
    json({
      preferConst: true, // Default: false
      indent: '  ',
    }),
  ],
};