avances en plantillas
This commit is contained in:
parent
0f84beacf1
commit
da0530d79b
2062 changed files with 598814 additions and 22 deletions
33
storage/public/dist/libs/countup.js/rollup.config.mjs
vendored
Normal file
33
storage/public/dist/libs/countup.js/rollup.config.mjs
vendored
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
import terser from '@rollup/plugin-terser';
|
||||
/**
|
||||
* Regarding "(!) `this` has been rewritten to `undefined`" warning:
|
||||
* It occurs because of typescript's Object.assign polyfill, which uses
|
||||
* `this` on the global scope. If you set `context: 'window'` in the rollup
|
||||
* config, it will silence the warning, but it will cause issues if CountUp
|
||||
* is not run in the browser. Allowing rollup to rewrite this to undefined
|
||||
* on just the global scope is harmless and doesn't break anything.
|
||||
*/
|
||||
export default [
|
||||
// minified build
|
||||
{
|
||||
input: 'dist/countUp.js',
|
||||
output: {
|
||||
file: 'dist/countUp.min.js',
|
||||
},
|
||||
plugins: [
|
||||
terser(), // minify the output
|
||||
],
|
||||
},
|
||||
// UMD build
|
||||
{
|
||||
input: 'dist/countUp.js',
|
||||
output: {
|
||||
file: 'dist/countUp.umd.js',
|
||||
name: 'countUp',
|
||||
format: 'umd',
|
||||
},
|
||||
plugins: [
|
||||
terser(),
|
||||
],
|
||||
}
|
||||
];
|
||||
Loading…
Add table
Add a link
Reference in a new issue