1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activestorage/rollup.config.js

29 lines
568 B
JavaScript
Raw Normal View History

2018-04-25 09:46:56 -04:00
import resolve from "rollup-plugin-node-resolve"
import commonjs from "rollup-plugin-commonjs"
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/activestorage/index.js",
output: {
file: "app/assets/javascripts/activestorage.js",
format: "umd",
name: "ActiveStorage"
},
plugins: [
resolve(),
commonjs(),
babel(),
uglify(uglifyOptions)
]
}