@matematrolii/sketchbook
Version:
3D matematrolii playground built on three.js and cannon.js
38 lines (37 loc) • 839 B
JavaScript
const path = require('path');
module.exports = {
entry: {
app: './src/ts/sketchbook.ts'
},
output: {
filename: './build/sketchbook.min.js',
library: 'Sketchbook',
libraryTarget: 'umd',
path: path.resolve(__dirname)
},
resolve: {
alias: {
cannon: path.resolve(__dirname, './src/lib/cannon/cannon.js')
},
extensions: [ '.tsx', '.ts', '.js' ],
},
module: {
rules: [
{
test: /\.tsx?$/,
use: 'ts-loader',
exclude: /node_modules/,
},
{
test: /\.css$/,
use: [
{ loader: 'style-loader', options: { injectType: 'singletonStyleTag' } },
{ loader: 'css-loader' },
]
}
]
},
performance: {
hints: false
}
};