Add Jest tests
Automate CSS and JS Banners Remove image fading for now Reference docker-compose.yml restored
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
const { resolve } = require('path');
|
||||
const babel = require('rollup-plugin-babel');
|
||||
const uglify = require('rollup-plugin-uglify');
|
||||
const pkg = require('./package.json');
|
||||
|
||||
const year = new Date().getFullYear();
|
||||
|
||||
const production = process.env.NODE_ENV === 'production';
|
||||
|
||||
@@ -8,9 +11,20 @@ module.exports = {
|
||||
input: resolve(__dirname, 'js/index.js'),
|
||||
output: {
|
||||
file: resolve(__dirname, 'theme/bundle.js'),
|
||||
format: 'iife',
|
||||
name: 'windycoys',
|
||||
format: 'umd',
|
||||
name: 'windy',
|
||||
sourcemap: !production && 'inline',
|
||||
banner: `/**!
|
||||
* Theme Name: WindyCOYS
|
||||
* Theme URI: https://windycoys.com/about
|
||||
* Author: ${pkg.author}
|
||||
* Author URI: https://danielhead.com
|
||||
* Description: Theme for windycoys.com
|
||||
* Version: ${pkg.version}
|
||||
* Copyright: (c) ${year} ${pkg.author}
|
||||
* License: MIT
|
||||
* License URI: https://choosealicense.com/licenses/mit/
|
||||
*/`,
|
||||
},
|
||||
plugins: [
|
||||
babel({
|
||||
|
||||
Reference in New Issue
Block a user