This commit is contained in:
Tommy Parnell
2017-12-25 16:38:21 -05:00
parent b602647511
commit 33943ad773
21 changed files with 349 additions and 78 deletions

View File

@@ -1,8 +1,9 @@
var webpack = require('webpack');
module.exports = {
entry: "./src/index.tsx",
output: {
filename: "bundle.js",
path: __dirname + "./dist",
path: __dirname + "/dist",
},
@@ -12,7 +13,13 @@ module.exports = {
// Add '.ts' and '.tsx' as resolvable extensions.
extensions: [".ts", ".tsx", ".js", ".json"]
},
plugins: [
new webpack.DefinePlugin({
'process.env': {
NODE_ENV: '"production"'
}
})
],
module: {
rules: [
// All files with a '.ts' or '.tsx' extension will be handled by 'awesome-typescript-loader'.