Skip to content

Commit

Permalink
Apply Buble to build locale
Browse files Browse the repository at this point in the history
  • Loading branch information
tomoya.komiyama authored and tomoya.komiyama committed May 2, 2018
1 parent 7554b17 commit 0d2071d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/build-locale.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import path from 'path'
import {rollup} from 'rollup'
import uglify from 'rollup-plugin-uglify'
import chalk from 'chalk'
import buble from 'rollup-plugin-buble'

async function build () {
console.log(chalk.cyan('Building individual translations.'))
Expand All @@ -11,6 +12,7 @@ async function build () {
const inputOptions = {
input: path.join(__dirname, '..', 'src', 'locale', 'translations', file),
plugins: [
buble(),
uglify()
]
}
Expand All @@ -29,6 +31,7 @@ async function buildAll () {
const bundle = await rollup({
input: path.join(__dirname, '..', 'src', 'locale', 'index.js'),
plugins: [
buble(),
uglify()
]
})
Expand Down

0 comments on commit 0d2071d

Please sign in to comment.