From 660faf94a90e56ade424cac57a522f8816ca65af Mon Sep 17 00:00:00 2001 From: Kael Date: Sat, 11 Jul 2020 21:03:33 +1000 Subject: [PATCH] feat: export VuetifyLoaderPlugin from index.js closes #138 --- README.md | 4 ++-- lib/index.js | 10 ++++++---- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 3d95c3c..75663ea 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ ```js // webpack.config.js -const VuetifyLoaderPlugin = require('vuetify-loader/lib/plugin') +const { VuetifyLoaderPlugin } = require('vuetify-loader') exports.plugins.push( new VuetifyLoaderPlugin() @@ -23,7 +23,7 @@ You can also provide a custom match function to import your own project's compon ```js // webpack.config.js -const VuetifyLoaderPlugin = require('vuetify-loader/lib/plugin') +const { VuetifyLoaderPlugin } = require('vuetify-loader') exports.plugins.push( new VuetifyLoaderPlugin({ diff --git a/lib/index.js b/lib/index.js index 0acef26..c5780c7 100644 --- a/lib/index.js +++ b/lib/index.js @@ -1,5 +1,7 @@ -const vuetifyLoader = require('./loader') -const progressiveLoaderModule = require('../progressive-loader/module') +const VuetifyLoader = require('./loader') +const VuetifyLoaderPlugin = require('./plugin') +const ProgressiveLoaderModule = require('../progressive-loader/module') -module.exports = vuetifyLoader -module.exports.VuetifyProgressiveModule = progressiveLoaderModule +module.exports = VuetifyLoader +module.exports.VuetifyLoaderPlugin = VuetifyLoaderPlugin +module.exports.VuetifyProgressiveModule = ProgressiveLoaderModule