Created
September 10, 2018 20:26
-
-
Save timglabisch/2b66f4c458abdff6f0463bc28a7c4664 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
const path = require('path'); | |
module.exports = { | |
entry: './src/main.js', | |
devtool: 'inline-source-map', | |
module: { | |
rules: [ | |
{ | |
test: /\.tsx?$/, | |
use: 'ts-loader', | |
exclude: /node_modules/ | |
}, | |
{ | |
test: /\.coffee$/, | |
use: [ 'coffee-loader' ] | |
} | |
] | |
}, | |
resolve: { | |
extensions: ['.tsx', '.ts', '.js', '.coffee'] | |
}, | |
output: { | |
filename: 'bundle.js', | |
path: path.resolve(__dirname, 'dist') | |
} | |
}; |
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
{ | |
"compilerOptions": { | |
"outDir": "./dist/", | |
"target": "es6", | |
"experimentalDecorators": true, | |
"strict": true, | |
//"noUnusedLocals": true, | |
//"noUnusedParameters": true, | |
"noImplicitReturns": true, | |
"noFallthroughCasesInSwitch": true, | |
"noImplicitAny": true, | |
"module": "es6", | |
"jsx": "react", | |
"allowJs": true, | |
"sourceMap": true, | |
"emitDecoratorMetadata": true, | |
"types": ["reflect-metadata"], | |
"lib": ["es6", "dom"] | |
} | |
} |
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
{ | |
"scripts": { | |
"test": "echo \"Error: no test specified\" && exit 1", | |
"build": "webpack", | |
"watch": "webpack --watch" | |
}, | |
"devDependencies": { | |
"coffee-loader": "^0.9.0", | |
"coffeescript": "^2.3.1", | |
"ts-loader": "^5.0.0", | |
"typescript": "^3.0.3", | |
"webpack": "^4.17.2", | |
"webpack-cli": "^3.1.0" | |
}, | |
"dependencies": { | |
"inversify": "^4.13.0", | |
"reflect-metadata": "^0.1.12" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment