Skip to content
This repository was archived by the owner on Aug 31, 2023. It is now read-only.

Commit cdaf271

Browse files
fix webpack
1 parent a05ef03 commit cdaf271

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
.DS_Store
22
node_modules/
33
dist/
4+
dist-demo/
45
npm-debug.log
56
yarn-error.log
67

webpack.config.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ var webpack = require('webpack')
44
module.exports = {
55
entry: './demo/main.js',
66
output: {
7-
path: path.resolve(__dirname, './dist'),
8-
publicPath: '/dist/',
7+
path: path.resolve(__dirname, './dist-demo'),
8+
publicPath: '/dist-demo/',
99
filename: 'build.js'
1010
},
1111
module: {
@@ -41,7 +41,7 @@ module.exports = {
4141
},
4242
resolve: {
4343
alias: {
44-
'vue$': 'vue/dist/vue.esm.js'
44+
'vue$': 'vue/dist-demo/vue.esm.js'
4545
},
4646
extensions: ['*', '.js', '.vue', '.json']
4747
},

0 commit comments

Comments
 (0)