sfm-js/webpack.config.js

27 lines
463 B
JavaScript
Raw Normal View History

2020-01-31 19:29:30 +00:00
module.exports = {
2020-02-01 07:10:25 +00:00
entry: './src/client/main-entry.ts',
2020-01-31 19:29:30 +00:00
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: {
2020-02-16 14:27:25 +00:00
extensions: ['.ts', '.js'],
2020-01-31 19:29:30 +00:00
},
};