Skip to content

Commit

Permalink
Merge pull request #476 from komiyamast/master
Browse files Browse the repository at this point in the history
Apply Buble to build locale
  • Loading branch information
charliekassel authored May 2, 2018
2 parents 7554b17 + 0d2071d commit 7ecd51b
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 7ecd51b

Please sign in to comment.