mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
25 lines
438 B
JavaScript
25 lines
438 B
JavaScript
|
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)
|
||
|
]
|
||
|
}
|