Skip to content

Instantly share code, notes, and snippets.

@jonathanjd
Created February 15, 2020 18:11
Show Gist options
  • Select an option

  • Save jonathanjd/23b4f5673420f8429ef689b18227ef81 to your computer and use it in GitHub Desktop.

Select an option

Save jonathanjd/23b4f5673420f8429ef689b18227ef81 to your computer and use it in GitHub Desktop.
{
"compilerOptions": {
"outDir": "./public/",
"noImplicitAny": true,
"module": "es6",
"target": "es5",
"jsx": "react",
"allowJs": true
},
"exclude": [
"node_modules",
"vendor",
"public/assets"
],
}
const path = require('path');
module.exports = {
entry: './src/index.ts',
module: {
rules: [{
test: /\.tsx?$/,
use: 'ts-loader',
exclude: /node_modules/,
}]
},
resolve: {
extensions: [ '.tsx', '.ts', '.js' ],
},
output: {
filename: 'main.js',
path: path.resolve(__dirname, './public/')
},
};
{
"name": "lien-app",
"version": "1.0.0",
"description": "App Lien",
"main": "webpack.config.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"dev": "webpack --mode development",
"watch": "webpack --watch --mode development",
"build": "webpack --mode production"
},
"repository": {
"type": "git",
"url": "git+https://jonathanjd@bitbucket.org/developemcomputersolutions/lien-app.git"
},
"author": "",
"license": "ISC",
"homepage": "https://bitbucket.org/developemcomputersolutions/lien-app#readme",
"devDependencies": {
"ts-loader": "^6.2.1",
"typescript": "^3.7.5",
"webpack": "^4.41.6",
"webpack-cli": "^3.3.11"
},
"dependencies": {
"axios": "^0.19.2",
"rxjs": "^6.5.4"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment