Skip to content

Conversation

@spekulatius
Copy link
Contributor

Hello @Kocal

as promised some more tidy up on the documentation site. This includes:

  • Fixing headings to have a consistent writing
  • Mention the documentation site in the project README.md
  • Adding configuration steps for TailwindCSS

If you think anything needs to be tweaked, just let me know and I'll do it before merging :)

Cheers,
Peter

Copy link
Owner

@Kocal Kocal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @spekulatius! It's look good to me, with few minor comments.

Comment on lines 34 to 55
// Specify the paths to all of the template files in your project
content: ['./src/**/*.vue'],

// Include any special characters you're using in this regular expression
defaultExtractor: (content) => content.match(/[\w-/:]+(?<!:)/g) || [],

extractors: [
// https://purgecss.com/guides/vue.html
{
extensions: ['vue'],
extractor(content) {
const contentWithoutStyleBlocks = content.replace(/<style[^]+?<\/style>/gi, '');
return contentWithoutStyleBlocks.match(/[A-Za-z0-9-_/:]*[A-Za-z0-9-_/]+/g) || [];
},
},
],

whitelist: [],
whitelistPatterns: [
/-(leave|enter|appear)(|-(to|from|active))$/, // transitions
/data-v-.*/, // scoped css
],
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To indent

});

module.exports = {
plugins: [tailwindcss(), ...(process.env.NODE_ENV === 'production' ? [purgecss] : [])],
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To indent

@spekulatius
Copy link
Contributor Author

Thank you @spekulatius! It's look good to me, with few minor comments.

Ah, thanks for checking. Sorry, I've only copied it over and didn't check the indentation. It should be fixed now.

@Kocal Kocal changed the title Fixing headings, mention in README.md, adding TailwindCSS steps doc: fixing headings, mention in README.md, adding TailwindCSS steps May 30, 2020
@Kocal Kocal merged commit 2ac1f15 into Kocal:master May 30, 2020
@Kocal
Copy link
Owner

Kocal commented May 30, 2020

Thank you!

@spekulatius
Copy link
Contributor Author

No problem!

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

Successfully merging this pull request may close these issues.

2 participants