blob: 1b4f9477ab51734e21b9efb26b309f60355072d8 (
plain) (
tree)
|
|
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)
]
}
|