@koozaki/romaji-conv
Version:
Convert romaji into kana
38 lines (35 loc) • 836 B
JavaScript
const webpack = require('webpack');
const package = require('./package');
const license = ` ${package.name}
${package.version}
${package.description}
${package.author.name} <${package.author.email}> (${package.author.url})
{ https://koozaki.com/romaji-conv/}
${package.license}`;
module.exports = {
mode: 'production',
entry: './browser/entry.js',
output: {
filename: 'romaji-conv.js'
},
target: ['web', 'es5'],
module: {
rules: [
{
test: /\.m?js$/,
exclude: /(node_modules|bower_components)/,
use: {
loader: 'babel-loader',
options: {
presets: ['@babel/preset-env']
}
}
}
]
},
plugins: [
new webpack.BannerPlugin({
banner: license
})
]
};