You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
652 B
32 lines
652 B
import babel from "rollup-plugin-babel";
|
|
import { uglify } from "rollup-plugin-uglify";
|
|
|
|
export default [
|
|
{
|
|
input: "./tests/index.js",
|
|
plugins: [babel({ exclude: "node_modules/**" })],
|
|
output: {
|
|
format: "umd",
|
|
name: "Hammer",
|
|
exports: "default",
|
|
freeze: false,
|
|
interop: false,
|
|
sourcemap: true,
|
|
file: "./testdist/hammer.js",
|
|
},
|
|
},
|
|
{
|
|
input: "./tests/index.js",
|
|
plugins: [babel({ exclude: "node_modules/**" }), uglify({ sourcemap: true })],
|
|
output: {
|
|
format: "umd",
|
|
name: "Hammer",
|
|
exports: "default",
|
|
freeze: false,
|
|
interop: false,
|
|
sourcemap: true,
|
|
file: "./testdist/hammer.min.js",
|
|
},
|
|
},
|
|
];
|