Skip to content
Discussion options

You must be logged in to vote

Hi 👋,
this should help:

  1. Typescript
  • Add Typescript dependencies:
$ npm i -D typescript ts-loader
  • Create tsconfig.json in the root directory with the following content:
{
  "compilerOptions": {
    "target": "es5",
    "moduleResolution": "node"
  }
}
  • Append Typescript extensions to the extensions array in .config/webpack/webpack.common.js:
...
resolve: {
  extensions: [..., '.tsx', '.ts'],
}
...
  • Add a new rule-set to .config/webpack/webpack.common.js:
...
rules: [
  {
    test: /\.tsx?$/,
    use: 'ts-loader',
    exclude: /node_modules/,
  }
]
...
  1. PurgeCSS
  • Install @fullhuman/postcss-purgecss:
$ npm i -D @fullhuman/postcss-purgecss
  • add require and config to .config/postcss.c…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by arash-038
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants