mc_arkanoid
Version:
A pure HTML / custom element Arkanoid clone using micro components
33 lines (29 loc) • 668 B
JavaScript
import path from 'path';
import { fileURLToPath } from 'url';
import { dirname } from 'path';
const __filename = fileURLToPath(import.meta.url);
const __dirname = dirname(__filename);
export default [
{
entry: './build/arkanoid.js',
mode: 'production',
experiments: {
outputModule: true
},
output: {
path: path.resolve(__dirname, 'dist'),
filename: 'mc-arkanoid.min.js',
//libraryTarget: 'module',
//globalObject: 'this',
},
module: {
rules: [{ test: /\.ts$/, use: 'ts-loader', exclude: /node_modules/ }],
},
resolve: {
extensions: ['.ts', '.js'],
},
optimization: {
minimize: false, // Enable minification
},
}
];