0.0.32 • Published 7 months ago

bakelor-tailwind-editors v0.0.32

Weekly downloads
-
License
-
Repository
-
Last release
7 months ago

Bakelor-Tailwind-Editors Configuration Guide

bakelor-tailwind-editors is a library styled with Tailwind CSS. To ensure the styles are applied correctly in your project, follow the configuration steps below.

Tailwind CSS Configuration for Bakelor-Tailwind-Editors

1. Update Tailwind CSS Configuration File

Ensure your tailwind.config.js file in your main project (not the library) is configured to consider the styles from bakelor-tailwind-editors. Update the content section as follows:

module.exports = {
  // ...
  content: [
    './src/**/*.{html,ts}', // Your Angular files
    './node_modules/bakelor-tailwind-editors/**/*.{html,ts,js,mjs,scss}', // Bakelor-Tailwind-Editors library
  ],
  // ...
}

This configuration ensures that Tailwind CSS considers the classes used within the bakelor-tailwind-editors library during the purge process, preventing them from being removed in the production build.

2. Include Library Styles and Assets in Your Project

In your angular.json file, ensure that the styles and assets from bakelor-tailwind-editors are included in your project's build options:

{
  // ...
  "projects": {
    "your-app-name": {
      // ...
      "architect": {
        "build": {
          // ...
          "options": {
            // ...
            "styles": [
              "./node_modules/bakelor-tailwind-editors/assets/styles/common.scss", // Library styles
              "src/styles.scss", // Your style file
              // ...
            ],
            "assets": [
              "src/favicon.ico",
              "src/assets",
              {
                "glob": "**/*",
                "input": "./node_modules/bakelor-tailwind-editors/assets",
                "output": "/assets/"
              }
            ],
            // ...
          },
          // ...
        },
        // ...
      },
      // ...
    },
    // ...
  },
  // ...
}

Note

Ensure that your application is set up to include the styles and scripts from the bakelor-tailwind-editors library. If you face any issues with styles not being applied, double-check the paths and ensure that the Tailwind CSS classes used within the library are not being purged unintentionally.

0.0.32

7 months ago

0.0.31

7 months ago

0.0.30

7 months ago

0.0.29

7 months ago

0.0.28

7 months ago

0.0.27

7 months ago

0.0.26

7 months ago

0.0.25

7 months ago

0.0.24

7 months ago

0.0.23

7 months ago

0.0.22

7 months ago

0.0.21

7 months ago

0.0.20

7 months ago

0.0.19

7 months ago

0.0.18

7 months ago

0.0.17

7 months ago

0.0.16

7 months ago

0.0.15

7 months ago

0.0.14

7 months ago

0.0.13

7 months ago

0.0.12

7 months ago

0.0.11

7 months ago

0.0.10

7 months ago

0.0.9

7 months ago

0.0.8

7 months ago

0.0.7

7 months ago

0.0.6

7 months ago

0.0.5

7 months ago

0.0.4

7 months ago

0.0.3

7 months ago

0.0.2

7 months ago

0.0.1

7 months ago