Created
December 4, 2017 16:04
-
-
Save dmitriid/182a253aaac532fd984556e5f41fca96 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
module.exports = { | |
devtool: 'source-map', | |
entry: ['./src/index.tsx'], | |
output: { | |
filename: 'bundle.js', | |
path: __dirname + '/dist/' | |
}, | |
module: { | |
rules: [ | |
{ | |
test: /\.tsx?$/, | |
use: ['ts-loader'], | |
exclude: /node_modules/, | |
}, | |
] | |
}, | |
resolve: { | |
extensions: [".tsx", ".ts", ".js"] | |
} | |
}; |
package.json
{
"name": "x",
"version": "0.1.0",
"description": "",
"main": "dist/index.js",
"repository": "",
"author": "",
"license": "MIT",
"scripts": {
"build": "webpack",
"watch": "webpack -w"
},
"devDependencies": {
"@types/react": "^16.0.9",
"@types/react-dom": "^16.0.0",
"ts-loader": "^2.3.7",
"typescript": "^2.5.3",
"webpack": "^3.6.0"
},
"dependencies": {
"react": "^16.0.0",
"react-dom": "^16.0.0"
}
}
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
tsconfig.json