@koreez/phaser3-i18n
Version:
Internationalization for phaser done right. Using the i18next i18n ecosystem.
39 lines (34 loc) • 767 B
JavaScript
const webpack = require('webpack')
const CleanWebpackPlugin = require('clean-webpack-plugin')
const GitRevisionPlugin = require('git-revision-webpack-plugin')
exports.cleanup = paths => ({
plugins: [
new CleanWebpackPlugin(paths, { root: process.cwd(), verbose: false }),
],
})
exports.loadJs = ({ options }) => ({
module: {
rules: [
{
test: /\.ts?$/,
exclude: ['/node_modules/', '/lib/'],
use: [
{
loader: 'ts-loader',
options: options,
},
],
},
],
},
})
exports.sourceMaps = method => ({
devtool: method,
})
exports.attachRevision = () => ({
plugins: [
new webpack.BannerPlugin({
banner: new GitRevisionPlugin().version(),
}),
],
})