Skip to content

Instantly share code, notes, and snippets.

@timglabisch
Created September 10, 2018 20:26
Show Gist options
  • Save timglabisch/2b66f4c458abdff6f0463bc28a7c4664 to your computer and use it in GitHub Desktop.
Save timglabisch/2b66f4c458abdff6f0463bc28a7c4664 to your computer and use it in GitHub Desktop.
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')
}
};
{
"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"]
}
}
{
"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