You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
572 B

преди 7 години
  1. import typescript from 'rollup-plugin-typescript2';
  2. import uglify from 'rollup-plugin-uglify';
  3. import { minify } from 'uglify-es';
  4. export default {
  5. input: './src/extension.ts',
  6. output: {
  7. file: 'out/extension.js',
  8. format: 'cjs'
  9. },
  10. plugins: [
  11. typescript(),
  12. uglify({
  13. ecma: 7,
  14. compress: true,
  15. mangle: true,
  16. output: {
  17. beautify: false,
  18. comments: false,
  19. ecma: 7
  20. },
  21. sourceMap: false,
  22. }, minify),
  23. ]
  24. }