Last active
March 21, 2020 02:11
-
-
Save zachleat/8167227892251c4fa39653c639cd8939 to your computer and use it in GitHub Desktop.
Eleventy + Vue Preview
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const eleventyVue = require("@11ty/eleventy-plugin-vue"); | |
module.exports = function(eleventyConfig) { | |
// Use Defaults | |
eleventyConfig.addPlugin(eleventyVue); | |
// OR, Use your own options | |
eleventyConfig.addPlugin(eleventyVue, { | |
// Directory for single file components (defaults to includes folder) | |
componentsDirectory: "", | |
// Directory to compile the Single File components into | |
cacheDirectory: ".cache/11ty/vue/", | |
// Example of using postcss in the single file components | |
rollupPluginVueOptions: { | |
style: { | |
postcssPlugins: [ | |
require("autoprefixer"), | |
require("postcss-nested") | |
] | |
} | |
} | |
}); | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"dependencies": { | |
"@11ty/eleventy": "^0.11.0-beta.2", | |
"@11ty/eleventy-plugin-vue": "^0.0.2" | |
}, | |
"scripts": { | |
"build": "ELEVENTY_EXPERIMENTAL=true eleventy" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Docs added to https://github.com/11ty/eleventy-plugin-vue/