Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import babel from 'rollup-plugin-babel'
- import json from 'rollup-plugin-json'
- import resolve from 'rollup-plugin-node-resolve'
- import commonjs from 'rollup-plugin-commonjs'
- import replace from 'rollup-plugin-replace'
- import stylusCssModules from 'rollup-plugin-stylus-css-modules'
- import builtins from 'rollup-plugin-node-builtins'
- import filesize from 'rollup-plugin-filesize'
- import progress from 'rollup-plugin-progress'
- import globals from 'rollup-plugin-node-globals'
- const main = process.env.npm_package_main
- export default {
- entry: main,
- format: 'iife',
- plugins: [
- replace({'process.env.NODE_ENV': JSON.stringify('development')}),
- progress(),
- stylusCssModules({output: false}),
- json({preferConst: true}),
- babel({
- babelrc: false,
- exclude: [
- 'node_modules/**',
- 'src/styles/**'
- ],
- presets: [['es2015', {modules: false}]],
- plugins: ['external-helpers']
- }),
- builtins(),
- resolve({
- jsnext: true,
- main: true,
- module: true,
- browser: true,
- preferBuiltins: true
- }),
- commonjs({
- include: 'node_modules/**',
- ignoreGlobal: true
- }),
- globals(),
- filesize()
- ],
- moduleName: 'videomail-client',
- dest: 'dist/videomail-client.js',
- sourceMap: 'inline'
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement