mirror of
https://github.com/Aviortheking/game-of-life.js.git
synced 2025-04-22 02:42:09 +00:00
29 lines
390 B
JavaScript
29 lines
390 B
JavaScript
const path = require('path');
|
|
|
|
const paths = {
|
|
build: path.resolve(__dirname, './build'),
|
|
src: __dirname
|
|
}
|
|
|
|
module.exports = (env, options) => {
|
|
return {
|
|
resolve: {
|
|
extensions: ['.ts']
|
|
},
|
|
entry: path.join(paths.src, 'main.ts'),
|
|
output: {
|
|
path: paths.build,
|
|
},
|
|
module: {
|
|
rules: [
|
|
{
|
|
test: /\.ts$/,
|
|
use: [
|
|
"ts-loader"
|
|
]
|
|
},
|
|
]
|
|
},
|
|
};
|
|
};
|