Skip to content

Commit e731a4e

Browse files
author
Vinoth Kumar V
committed
webpack setup change
1 parent b729cd4 commit e731a4e

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vue-tiny-tabs",
3-
"version": "1.0.2",
3+
"version": "1.0.3",
44
"main": "src/plugin.js",
55
"scripts": {
66
"build": "webpack -p"

webpack.config.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
var path = require('path')
22
var webpack = require('webpack')
3+
const VueLoaderPlugin = require('vue-loader/lib/plugin')
34

45
module.exports = {
56
entry: './src/plugin.js',
6-
7+
78
module: {
89
rules: [
910
// use babel-loader for js files
@@ -41,6 +42,7 @@ if (process.env.NODE_ENV === 'production') {
4142
}),
4243
new webpack.LoaderOptionsPlugin({
4344
minimize: true
44-
})
45+
}),
46+
new VueLoaderPlugin()
4547
])
4648
}

0 commit comments

Comments
 (0)