rollup-plugin-uglify#uglify JavaScript Examples

The following examples show how to use rollup-plugin-uglify#uglify. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: rollup.config.js    From tabler-icons with MIT License 6 votes vote down vote up
minCjsPlugins = [
  babel({
    exclude: "node_modules/**",
  }),
  external(),
  resolve(),
  commonjs(),
  uglify(),
  filesize(),
]
Example #2
Source File: rollup.config.js    From react-dashboard-pro with MIT License 6 votes vote down vote up
commonConf = {
  input: getPath("./doc/src/package/index.tsx"),
  external: ["react","react-dom","antd","@ant-design/icons","react-grid-layout"],
  plugins: [
    uglify(),
    postcss(),
    resolve(extensions),
    // babel({
    //   exclude: 'node_modules/**' // 仅仅转译我们的源码
    // }),
    commonjs(),
    esPlugin,
    tsPlugin,
    
  ],
}
Example #3
Source File: rollup.js    From vue-dndrop with MIT License 5 votes vote down vote up
min = Object.assign({}, umd, {
  output: output('min.js'),
  plugins: [...umd.plugins, uglify()]
})
Example #4
Source File: rollup.js    From vue-class-store with MIT License 5 votes vote down vote up
min = Object.assign({}, umd, {
  output: output('min.js'),
  plugins: [...umd.plugins, uglify()],
})