Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/excaliburjs/sample-platformer. Sample Platformer built in Excalibur excaliburjs.com/sample-platformer
Something went wrong. Try again.
sample-platformer webpack.config.js
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647const path = require('path');const CopyPlugin = require('copy-webpack-plugin');
module.exports = { entry: './src/main.ts', devtool: 'source-map', devServer: { port: 9000, allowedHosts: 'all', devMiddleware: { writeToDisk: true }, static: { directory: path.resolve(__dirname) } }, plugins: [ new CopyPlugin({ patterns: [ "index.html", {from:'res', to:'res'} ], }), ], resolve: { extensions: ['.ts', '.js'] }, output: { filename: '[name].js', sourceMapFilename: '[file].map', path: path.resolve(__dirname, 'dist') }, module: { rules: [ { test: /\.ts?$/, use: 'ts-loader', exclude: /node_modules/ }, { test: /\.(png|jpg|bmp|wav|mp3)$/, type: 'asset/resource' } ] }}