File: rollup.config.js

package info (click to toggle)
rails 2:5.2.3+dfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 32,888 kB
  • sloc: ruby: 236,396; yacc: 46; sql: 43; makefile: 22; sh: 14
file content (32 lines) | stat: -rw-r--r-- 682 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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({
    customResolveOptions: {
      moduleDirectory: ['/usr/lib/nodejs','../debian/node_modules']
    }
  }),
    commonjs(),
    babel()
//    uglify(uglifyOptions)
  ]
}