vue-sfc-rollup external dependency
// rollup.config.js
import vue from 'rollup-plugin-vue';
import buble from 'rollup-plugin-buble';
import uglify from 'rollup-plugin-uglify-es';
import minimist from 'minimist';
const argv = minimist(process.argv.slice(2));
const config = {
input: 'src/index.js',
output: {
name: 'veeno',
exports: 'named',
globals: { // added
noUiSlider: 'noUiSlider'
}
},
external: ['nouislider'], // added
plugins: [
vue({
css: true,
compileTemplate: true,
}),
buble(),
],
};
// Only minify browser (iife) version
if (argv.format === 'iife') {
config.plugins.push(uglify());
}
export default config;
Also in JavaScript:
- change dxform label angular
- check the doc name in javascript
- on click fade out jquery
- what is amqp10 policy nodejs
- anime.js morph svg d value
- ajax django send array
- linkedin api nodejs tutorial
- nativescript vue get native from ref
- join two arrays javascript
- how to proxy enable in server nodejs
- warning Non-interactive elements should not be assigned mouse or keyboard event listeners jsx-a11y/no-noninteractive-element-interactions
- encrypt script code
- moment check valid date
- w3schools ajax
- redirect to homepage javascript
- nodemailer
- comment in jsp file
- string contains in javascript
- listerner content loaded js
- javascript keypress backspace not working
- javascript cors error
- uppy get data to input
- json-server localhost
- react native flexbox 2 columns 1 fixed width