vue-doc-loader
v0.0.7
Published
Document loader for webpack
Downloads
9
Maintainers
Readme
Document loader for webpack
Installation
npm install vue-doc-loader --save-dev
The vue-doc-loader requires vue-loader
, vue-style-loader
, 'css-loader'
Usage
require("vue-doc-loader?doc=ysf-doc");
webpack config
module.exports = {
module: {
loaders: [
{
test: /\.md$/,
loader: require('vue-doc-loader'),
query : "doc=ysf-doc"
},
{
test: /\.vue$/,
loader: 'vue'
},
{
test: /\.js$/,
exclude: /node_modules/,
loader: 'babel'
},
{
test: /\.css$/,
loader: 'style!css'
}
]
},
vue: {
loaders: {
scss: "vue-style-loader!css-loader!sass"
}
}
};
License
MIT (http://www.opensource.org/licenses/mit-license.php)