bosca-ceoil-js/webpack.config.js

29 lines
582 B
JavaScript
Raw Normal View History

2019-07-16 09:31:45 +02:00
path = require("path");
module.exports = {
entry: {
index: './src/player.ts'
},
module: {
rules: [
{
test: /\.tsx?$/,
use: 'ts-loader',
exclude: /node_modules/
},
{
test: /\.yaml$/,
use: 'js-yaml-loader',
2019-07-16 09:31:45 +02:00
}
]
},
resolve: {
extensions: ['.tsx', '.ts', '.js']
},
devtool: 'inline-source-map',
output: {
filename: '[name].js',
path: path.resolve(__dirname, 'assets')
}
};