Skip to content

Instantly share code, notes, and snippets.

@ushironoko
Created April 5, 2019 17:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ushironoko/93768de029d07aeb609d1222ad65f853 to your computer and use it in GitHub Desktop.
Save ushironoko/93768de029d07aeb609d1222ad65f853 to your computer and use it in GitHub Desktop.
const path = require('path');
const HtmlWebpackPlugin = require('html-webpack-plugin');
module.exports = {
resolve: {
extensions: ['.ts', '.tsx', '.js', '.jsx']
},
module: {
rules: [
{
test: /\.tsx?$/,
loader: 'ts-loader',
options: {
transpileOnly: true
}
}
]
},
plugins: [
new HtmlWebpackPlugin({
template: path.join(__dirname, 'src/index.html')
})
]
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment