Skip to content
This repository has been archived by the owner on Feb 19, 2024. It is now read-only.

Commit

Permalink
dependencies update
Browse files Browse the repository at this point in the history
  • Loading branch information
VinceG committed Nov 6, 2018
1 parent 45651b6 commit c4b2757
Show file tree
Hide file tree
Showing 6 changed files with 644 additions and 692 deletions.
5 changes: 4 additions & 1 deletion build/webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
var path = require('path')
var webpack = require('webpack')
const VueLoaderPlugin = require('vue-loader/lib/plugin')

module.exports = {
entry: './src/index.js',
Expand Down Expand Up @@ -33,8 +34,9 @@ module.exports = {
vue: 'vue'
},
resolve: {
extensions: ['.js', '.vue'],
alias: {
'vue$': 'vue/dist/vue.esm.js'
'vue': 'vue/dist/vue.esm.js'
}
},
devServer: {
Expand All @@ -45,6 +47,7 @@ module.exports = {
hints: false
},
plugins: [
new VueLoaderPlugin(),
new webpack.DefinePlugin({
'process.env': {
NODE_ENV: '"production"'
Expand Down
7 changes: 5 additions & 2 deletions demo/webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
var path = require('path')
var webpack = require('webpack');
var HtmlWebpackPlugin = require('html-webpack-plugin');
const VueLoaderPlugin = require('vue-loader/lib/plugin')

module.exports = {
entry: './demo/src/main.js',
Expand Down Expand Up @@ -40,9 +41,10 @@ module.exports = {
]
},
resolve: {
extensions: ['.js', '.vue'],
alias: {
'vue$': 'vue/dist/vue.esm.js',
'plugin': path.resolve(__dirname, "../src/index.js")
'vue': 'vue/dist/vue.esm.js',
'plugin': path.resolve(__dirname, "../dist/index.js")
}
},
devServer: {
Expand All @@ -54,6 +56,7 @@ module.exports = {
},
devtool: '#eval-source-map',
plugins: [
new VueLoaderPlugin(),
new webpack.DefinePlugin({
'process.env': "'development'"
}),
Expand Down
Loading

0 comments on commit c4b2757

Please sign in to comment.