Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The content transform returning error #1

Closed
viterzbayraku opened this issue Oct 2, 2022 · 1 comment
Closed

The content transform returning error #1

viterzbayraku opened this issue Oct 2, 2022 · 1 comment

Comments

@viterzbayraku
Copy link

This code returning error SyntaxError: Unexpected token ':'

module.exports = {
  content: {
    transform: (content) => content.replace(/taos:/g, ''),
  },
}
@volkandkaya
Copy link
Collaborator

Try using some of

module.exports = {
  content: {
    files: ['./index.html', './src/**/*.{vue,js,ts,jsx,tsx}'],
    transform: (content) => content.replace(/taos:/g, ''),
  },
  theme: {
    extend: {},
  },
  plugins: [require('taos/plugin')],
  safelist: [
    '!duration-0',
    '!delay-0',
    'html.js :where([class*="taos:"]:not(.taos-init))',
  ],
};

Might require files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants