diff --git a/generators/app/templates/scripts/_banner.js b/generators/app/templates/scripts/_banner.js index 48f18c17..3bcaddd3 100644 --- a/generators/app/templates/scripts/_banner.js +++ b/generators/app/templates/scripts/_banner.js @@ -1,3 +1,3 @@ const pkg = require('../package.json'); -module.exports = `/*! @name ${pkg.name} @version ${pkg.version} @copyright ${pkg.author} @license ${pkg.license} */` +module.exports = `/*! @name ${pkg.name} @version ${pkg.version} @copyright ${pkg.author} @license ${pkg.license} */`; diff --git a/generators/app/templates/scripts/_rollup.config.js b/generators/app/templates/scripts/_rollup.config.js index 25c01b44..1dbde9a2 100644 --- a/generators/app/templates/scripts/_rollup.config.js +++ b/generators/app/templates/scripts/_rollup.config.js @@ -40,7 +40,13 @@ export default [{ banner }, external: Object.keys(umdGlobals), - plugins: [plugins.resolve, plugins.json, plugins.commonjs, plugins.uglify, plugins.babel] + plugins: [ + plugins.resolve, + plugins.json, + plugins.commonjs, + plugins.uglify, + plugins.babel + ] }, { // cjs and es input: 'src/plugin.js', @@ -48,6 +54,7 @@ export default [{ {file: 'dist/<%= pluginName %>.cjs.js', format: 'cjs', globals: moduleGlobals, banner}, {file: 'dist/<%= pluginName %>.es.js', format: 'es', globals: moduleGlobals, banner} ], - external: Object.keys(moduleGlobals).concat(['global', 'global/window', 'global/document']), + external: Object.keys(moduleGlobals) + .concat(['global', 'global/window', 'global/document']), plugins: [plugins.json, plugins.babel] }];