mirror of
https://github.com/LucasDower/ObjToSchematic.git
synced 2025-02-23 13:49:07 +08:00
34 lines
785 B
JavaScript
34 lines
785 B
JavaScript
|
const path = require('path');
|
||
|
const NodePolyfillPlugin = require('node-polyfill-webpack-plugin');
|
||
|
|
||
|
module.exports = {
|
||
|
entry: './src/client.ts',
|
||
|
plugins: [
|
||
|
new NodePolyfillPlugin(),
|
||
|
],
|
||
|
module: {
|
||
|
rules: [
|
||
|
{
|
||
|
test: /\.css$/i,
|
||
|
use: ['style-loader', 'css-loader'],
|
||
|
},
|
||
|
{
|
||
|
test: /\.vs|fs$/,
|
||
|
use: 'raw-loader',
|
||
|
},
|
||
|
{
|
||
|
test: /\.tsx?$/,
|
||
|
use: 'ts-loader',
|
||
|
exclude: /node_modules|main\.ts/,
|
||
|
},
|
||
|
],
|
||
|
},
|
||
|
resolve: {
|
||
|
extensions: ['.tsx', '.ts', '.js'],
|
||
|
},
|
||
|
output: {
|
||
|
filename: 'bundle.js',
|
||
|
path: path.resolve(__dirname, './webpack'),
|
||
|
},
|
||
|
};
|