v1.0
This commit is contained in:
@@ -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'.
|
||||
|
||||
Reference in New Issue
Block a user