🚧 Switched to rollup
This commit is contained in:
parent
568d0cdc4d
commit
cdd6a32b37
5 changed files with 114 additions and 32 deletions
|
@ -1,22 +1,22 @@
|
|||
import filesize from 'rollup-plugin-filesize'
|
||||
import { terser } from "rollup-plugin-terser";
|
||||
import babel from 'rollup-plugin-babel';
|
||||
import resolve from 'rollup-plugin-node-resolve';
|
||||
import filesize from "rollup-plugin-filesize";
|
||||
import babel from "rollup-plugin-babel";
|
||||
import resolve from "rollup-plugin-node-resolve";
|
||||
import json from "rollup-plugin-json";
|
||||
|
||||
export default {
|
||||
input: 'src/index.js'
|
||||
, output: {
|
||||
file: 'dist/bundle.js'
|
||||
, format: 'cjs'
|
||||
}
|
||||
, plugins: [
|
||||
input: "src/index.js",
|
||||
output: {
|
||||
file: "dist/module.js",
|
||||
format: "cjs"
|
||||
},
|
||||
plugins: [
|
||||
resolve({
|
||||
browser: false
|
||||
})
|
||||
, babel({
|
||||
exclude: 'node_modules/**'
|
||||
})
|
||||
, terser()
|
||||
, filesize()
|
||||
}),
|
||||
json(),
|
||||
babel({
|
||||
exclude: "node_modules/**"
|
||||
}),
|
||||
filesize()
|
||||
]
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue