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.
 
 
 
 
ozgurkon-theme-hugo/rollup.config.js

30 lines
735 B

import resolve from 'rollup-plugin-node-resolve';
import babel from 'rollup-plugin-babel';
const {Logger, LogLevel} = require('plop-logger');
const {colorEmojiConfig} = require('plop-logger/lib/extra/colorEmojiConfig');
Logger.config = colorEmojiConfig;
const logger = Logger.getLogger('icons');
logger.level = LogLevel.All;
const globals = {firebase: 'firebase'};
export default {
input: 'src/script/main.js',
output: [
{file: 'static/theme.js', format: 'esm', globals}
],
plugins: [
resolve(),
babel({
exclude: 'node_modules/**' // only transpile our source code
})
],
external: [
'firebase',
'firebase/firestore'
],
onwarn(warning) {
logger.warn(warning.message, warning);
}
}