15 lines
406 B
TypeScript
15 lines
406 B
TypeScript
import * as path from 'path';
|
|
import * as webpack from 'webpack';
|
|
// in case you run into any typescript error when configuring `devServer`
|
|
// import 'webpack-dev-server';
|
|
|
|
const config: webpack.Configuration = {
|
|
context: path.resolve(__dirname, 'src'),
|
|
entry: './index.ts',
|
|
output: {
|
|
path: path.resolve(__dirname, 'dist'),
|
|
filename: '[name]-[hash].bundle.js',
|
|
},
|
|
};
|
|
|
|
export default config; |