Created
September 26, 2017 18:47
-
-
Save danielhutchinson/775947d78b512e129f0ecea226b742be to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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