aboutsummaryrefslogtreecommitdiffstats
path: root/actioncable/rollup.config.js
blob: 64727e0887d837db90aa22ad6bdaf5c6733a5d1e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import babel from "rollup-plugin-babel"
import uglify from "rollup-plugin-uglify"

const uglifyOptions = {
  mangle: false,
  compress: false,
  output: {
    beautify: true,
    indent_level: 2
  }
}

export default {
  input: "app/javascript/action_cable/index.js",
  output: {
    file: "app/assets/javascripts/action_cable.js",
    format: "umd",
    name: "ActionCable"
  },
  plugins: [
    babel(),
    uglify(uglifyOptions)
  ]
}