Created
May 16, 2019 16:41
-
-
Save alemohamad/881d3473abf1c6da2ccf4be81f97eeee to your computer and use it in GitHub Desktop.
webpack example file
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
module.exports = { | |
entry: './src/index', | |
output: { | |
path: __dirname + '/build', | |
filename: 'bundle.js' | |
}, | |
module: { | |
rules: [{ | |
test: /\.tsx?$/, | |
loader: 'ts-loader', | |
exclude: /node_modules/ | |
}] | |
}, | |
resolve: { | |
extensions: ['.ts', '.tsx'] | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment