Browse Source

feat: preserve license in c3.min.js (#2283)

pull/2203/merge
Yoshiya Hinosawa 7 years ago committed by GitHub
parent
commit
ca0a1f0773
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      package.json
  2. 4
      rollup.config.js

2
package.json

@ -9,7 +9,7 @@
"build": "npm run build:js && npm run build:css",
"build:js": "npm run build:js:rollup && npm run build:js:uglify",
"build:js:rollup": "rollup -c > c3.js",
"build:js:uglify": "uglifyjs c3.js --compress --mangle -o c3.min.js",
"build:js:uglify": "uglifyjs c3.js --compress --mangle --comments -o c3.min.js",
"build:css": "npm run build:css:sass && npm run build:css:min",
"build:css:sass": "node-sass src/scss/main.scss > c3.css",
"build:css:min": "cleancss -o c3.min.css c3.css",

4
rollup.config.js

@ -1,10 +1,12 @@
import babel from 'rollup-plugin-babel';
import pkg from './package.json'
export default {
input: 'src/index.js',
output: {
name: 'c3',
format: 'umd'
format: 'umd',
banner: `/* @license C3.js v${pkg.version} | (c) C3 Team and other contributors | http://c3js.org/ */`
},
plugins: [babel({
presets: [['es2015', {

Loading…
Cancel
Save