metaowl 0.3.0 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -2
  2. package/postcss.cjs +8 -23
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "metaowl",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "Lightweight meta-framework for Odoo OWL — file-based routing, app mounting, Fetch helper, Cache, Meta tags, SSG generator, and a Vite plugin.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -37,7 +37,6 @@
37
37
  },
38
38
  "dependencies": {
39
39
  "@eslint/js": "^9.20.1",
40
- "@fullhuman/postcss-purgecss": "^6.0.0",
41
40
  "@odoo/owl": "^2.8.2",
42
41
  "@typescript-eslint/eslint-plugin": "^8.24.1",
43
42
  "@typescript-eslint/parser": "^8.24.1",
package/postcss.cjs CHANGED
@@ -4,37 +4,22 @@
4
4
  // const { createPostcssConfig } = require('metaowl/postcss')
5
5
  // module.exports = createPostcssConfig()
6
6
  //
7
- // Override safelist or add content globs:
7
+ // Add extra PostCSS plugins:
8
8
  //
9
9
  // module.exports = createPostcssConfig({
10
- // safelist: [/^my-custom-class/],
11
- // content: ['./templates/**/*.html']
10
+ // additionalPlugins: [require('some-postcss-plugin')()]
12
11
  // })
13
-
14
- const defaultSafelist = []
12
+ //
13
+ // Note: PurgeCSS is intentionally not included. Tailwind CSS v4 performs its
14
+ // own content scanning and generates only the CSS that is actually used.
15
+ // Adding PurgeCSS on top breaks responsive variants (sm:, md:, lg:, etc.)
16
+ // because its default extractor treats ":" as a separator.
15
17
 
16
18
  function createPostcssConfig(options = {}) {
17
- const {
18
- safelist = [],
19
- content = [],
20
- additionalPlugins = []
21
- } = options
19
+ const { additionalPlugins = [] } = options
22
20
 
23
21
  return {
24
22
  plugins: [
25
- ...process.env.NODE_ENV === 'production'
26
- ? [
27
- require('@fullhuman/postcss-purgecss')({
28
- content: [
29
- './**/*.xml',
30
- './**/*.html',
31
- './src/**/*.js',
32
- ...content
33
- ],
34
- safelist: [...defaultSafelist, ...safelist]
35
- })
36
- ]
37
- : [],
38
23
  ...additionalPlugins
39
24
  ]
40
25
  }