Created
October 11, 2017 19:36
-
-
Save mateuszsokola/cd1a01d5f46d335b79c2f9fec20f276d to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| const webpack = { | |
| entry: './src/client/index.tsx', | |
| output: { | |
| filename: 'target/bundle.js', | |
| }, | |
| devtool: 'source-map', | |
| resolve: { | |
| extensions: ['.ts', '.tsx', '.js', '.json'], | |
| }, | |
| module: { | |
| loaders: [ | |
| { | |
| test: /.tsx?$/, | |
| loader: 'awesome-typescript-loader', | |
| exclude: /node_modules/, | |
| }, { | |
| test: /.js$/, | |
| loader: 'source-map-loader', | |
| enforce: 'pre', | |
| } | |
| ] | |
| } | |
| }; | |
| module.exports = webpack; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment