sfm-js/webpack.config.js
marihachi 8884fde58b 🐱
2020-02-01 16:10:25 +09:00

26 lines
456 B
JavaScript

module.exports = {
entry: './src/client/main-entry.ts',
output: {
path: `${__dirname}/built/client`,
publicPath: '/', // base path of URL
filename: 'bundle.js',
chunkFilename: "bundle.[name].js",
},
module: {
rules: [
{
test: /\.ts$/,
exclude: /node_modules/,
use: [
{
loader: 'ts-loader',
options: { configFile: 'tsconfig.client.json' },
},
],
},
]
},
resolve: {
extensions: ['.ts'],
},
};