This project is a template for developing a web extension quickly using TypeScript and tailwindcss.
- TypeScript - A superset of JavaScript that adds optional static typing
- TailwindCSS - A utility-first CSS framework for quickly building custom user interfaces
- Webpack - A module bundler for JavaScript applications
- PostCSS - A tool for transforming CSS with JavaScript
yarn watch:tailwind: Watches for changes in the tailwind.css file and compiles it to dist/tailwind.cssyarn build:tailwind: Compiles the tailwind.css file to dist/tailwind.cssyarn start: Runs thewatch:tailwindscript and starts webpack in development mode with hot module replacementyarn build: Runs webpack in production mode and creates a minified build in the dist folder
@types/chrome: TypeScript definitions for the Chrome browser APIclean-webpack-plugin: A Webpack plugin for removing the dist folder before buildingconcurrently: A tool for running multiple scripts concurrentlycopy-webpack-plugin: A Webpack plugin for copying files to the dist folderhtml-loader: A loader for webpack that allows importing of HTML fileshtml-webpack-plugin: A Webpack plugin that simplifies the creation of HTML files to serve your bundlespostcss: A tool for transforming CSS with JavaScriptpostcss-cli: A command line interface for postcsspostcss-loader: A loader for webpack that allows using postcss pluginspostcss-preset-env: A set of postcss plugins for transforming CSS for compatibility with modern browserstailwindcss: A utility-first CSS framework for quickly building custom user interfacests-loader: A loader for webpack that allows using TypeScripttypescript: A superset of JavaScript that adds optional static typingwebpack: A module bundler for JavaScript applicationswebpack-cli: A command line interface for webpack
- TypeScript - A superset of JavaScript that adds optional static typing
- TailwindCSS - A utility-first CSS framework for quickly building custom user interfaces
- Webpack - A module bundler for JavaScript applications
- PostCSS - A tool for transforming CSS with JavaScript
yarn watch:tailwind: Watches for changes in the tailwind.css file and compiles it to dist/tailwind.cssyarn build:tailwind: Compiles the tailwind.css file to dist/tailwind.cssyarn start: Runs thewatch:tailwindscript and starts webpack in development mode with hot module replacementyarn build: Runs webpack in production mode and creates a minified build in the dist folder
@types/chrome: TypeScript definitions for the Chrome browser APIclean-webpack-plugin: A Webpack plugin for removing the dist folder before buildingconcurrently: A tool for running multiple scripts concurrentlycopy-webpack-plugin: A Webpack plugin for copying files to the dist folderhtml-loader: A loader for webpack that allows importing of HTML fileshtml-webpack-plugin: A Webpack plugin that simplifies the creation of HTML files to serve your bundlespostcss: A tool for transforming CSS with JavaScriptpostcss-cli: A command line interface for postcsspostcss-loader: A loader for webpack that allows using postcss pluginspostcss-preset-env: A set of postcss plugins for transforming CSS for compatibility with modern browserstailwindcss: A utility-first CSS framework for quickly building custom user interfacests-loader: A loader for webpack that allows using TypeScripttypescript: A superset of JavaScript that adds optional static typingwebpack: A module bundler for JavaScript applicationswebpack-cli: A command line interface for webpack
Environment:
node v16.17.0
yarn 1.22.19
npm 8.15.0
To use this template, clone the repository and install the dependencies:
git clone https://github.com/[your_username]/template-extension-tailwind-typescript.git
cd template-extension-tailwind-typescript
yarn installThen, start the development server:
yarn start