Webpack ts-loader : change tsconfig filename

In Webpack 4 you need to specify the options into a use object: use: [{ loader: ‘ts-loader’, options: { configFile: “tsconfig.webpack.json” } }] Complete Webpack config: var path = require(‘path’); module.exports = { entry: path.resolve(__dirname, ‘src’) + ‘/index.ts’, output: { path: path.resolve(__dirname, ‘dist’), filename: ‘your-library-name.js’, }, module: { rules: [ { test: /\.ts$/, use: [{ … Read more

Why use babel-loader with ts-loader?

ts-loader: convert typescript (es6) to javascript (es6) babel-loader: converts javascript (es6) to javascript (es5) and Typescript doesn’t do polyfills, which babel does. If you write client-side code in es6 and want it to run on modern browsers, you’d probably need babel‘s polyfills. It is less justified with server-side code – just use the latest node … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)