UNPKG

poko

Version:
82 lines (77 loc) 2.58 kB
/*! * ========================================================================== * "CoPoKo poko" License * GNU General Public License version 3.0 (GPLv3) * ========================================================================== * This file is part of "CoPoKo poko" * * "CoPoKo poko" is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * "CoPoKo poko" is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with "CoPoKo poko". If not, see <http://www.gnu.org/licenses/>. * ========================================================================== */ const path = require('path'); const webpack = require('webpack'); const NodePolyfillPlugin = require('node-polyfill-webpack-plugin'); const banner = ` CoPoKo poko Copyright (C) 2018 CoPoKo Team This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>. ` module.exports = { entry: path.resolve(__dirname, './src/index.ts'), target: 'webworker', output: { filename: 'worker.js', path: path.resolve(__dirname, 'dist'), }, mode: 'production', optimization: { minimize: false, }, resolve: { fallback: { fs: false, }, extensions: [".ts", ".tsx", ".js"] }, module: { rules: [ { test: /\.html$/i, loader: "html-loader", options: { sources: false, minimize: false, }, }, { test: /\.tsx?$/, loader: "ts-loader" }, { test: /\.ya?ml$/, use: 'yaml-loader' }, ] }, plugins: [ new webpack.BannerPlugin(banner), new NodePolyfillPlugin() ], performance: { hints: false, }, };