Skip to content

Commit d8aff0c

Browse files
author
Charlie Kassel
committed
add all languages build
1 parent 7d4a05a commit d8aff0c

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

scripts/build-locale.js

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,18 @@ const config = files.map(file => {
2121
}
2222
})
2323

24-
export default config
24+
const index = {
25+
input: path.join(__dirname, '..', 'src', 'locale', 'index.js'),
26+
output: {
27+
file: path.join(__dirname, '..', 'dist', 'locale', 'index.js'),
28+
format: 'umd',
29+
name: `vdp_translation_index`
30+
},
31+
plugins: [
32+
commonjs(),
33+
babel({exclude: 'node_modules/**'}),
34+
terser()
35+
]
36+
}
37+
38+
export default config.concat(index)

0 commit comments

Comments
 (0)