{"size": 516, "ext": "js", "max_stars_repo_path": "webpack.common.js", "max_stars_repo_name": "nerosnm/quiz", "max_stars_repo_stars_event_min_datetime": "2020-12-13T10:43:52.000Z", "max_stars_repo_stars_event_max_datetime": "2020-12-13T10:43:52.000Z", "max_issues_repo_path": "webpack.common.js", "max_issues_repo_name": "nerosnm/quiz", "max_issues_repo_issues_event_min_datetime": "2020-04-17T15:58:35.000Z", "max_issues_repo_issues_event_max_datetime": "2022-02-27T03:08:03.000Z", "max_forks_repo_path": "webpack.common.js", "max_forks_repo_name": "nerosnm/quiz", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": 5, "max_forks_count": null, "avg_line_length": 23.4545454545, "max_line_length": 62, "alphanum_fraction": 0.6220930233}
const path = require('path');
const WasmPackPlugin = require('@wasm-tool/wasm-pack-plugin');
const CopyWebpackPlugin = require('copy-webpack-plugin');

module.exports = {
  entry: './js/bootstrap.js',
  plugins: [
    new CopyWebpackPlugin([
      { from: './static' }
    ]),
    new WasmPackPlugin({
      crateDirectory: '.',
      extraArgs: '--no-typescript',
    })
  ],
  output: {
    filename: 'quiz.bundle.js',
    webassemblyModuleFilename: 'quiz.wasm',
    path: path.resolve(__dirname, 'dist'),
  },
};
