Skip to content

Commit 834c5c3

Browse files
committed
fix standalone build #312
1 parent 4009346 commit 834c5c3

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

build/webpack/prod-lib.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,13 @@ export default merge(baseConfig, {
4747
]
4848
},
4949
externals: {
50-
vue: 'vue'
50+
vue: {
51+
commonjs: 'vue',
52+
commonjs2: 'vue',
53+
amd: 'vue',
54+
root: 'Vue',
55+
var: 'Vue'
56+
}
5157
},
5258
plugins: [
5359
new webpack.optimize.DedupePlugin(),

src/index.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,4 @@ options.install = (Vue) => {
7474
}
7575
};
7676

77-
window.VueMaterial = options;
78-
7977
export default options;

0 commit comments

Comments
 (0)