Skip to content

Instantly share code, notes, and snippets.

@danielhutchinson
Created September 26, 2017 18:47
Show Gist options
  • Save danielhutchinson/775947d78b512e129f0ecea226b742be to your computer and use it in GitHub Desktop.
Save danielhutchinson/775947d78b512e129f0ecea226b742be to your computer and use it in GitHub Desktop.
// npm install --save-dev webpack webpack-dev-server typescript ts-loader
// webpage.config.js
module.exports = {
entry: './main',
output: { filename: 'app.js' },
module: {
loaders: [
{
test: /.ts$/,
loader: 'ts-loader',
exclude: /node_modules/
}
]
},
resolve: {
extensions: ['.ts', '.js']
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment