imatrix-ui 2.9.0-dw-tmp10 → 2.9.0-dw-tmp11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -137,6 +137,32 @@ module.exports = {
137
137
  '@': resolve('src')
138
138
  }
139
139
  },
140
+ externals: { // 外部化对vue的依赖
141
+ vue: {
142
+ root: 'Vue',
143
+ commonjs: 'vue',
144
+ commonjs2: 'vue',
145
+ amd: 'vue'
146
+ },
147
+ vuex: {
148
+ root: 'Vuex',
149
+ commonjs: 'vuex',
150
+ commonjs2: 'vuex',
151
+ amd: 'vuex'
152
+ },
153
+ 'vue-i18n': {
154
+ root: 'VueI18n',
155
+ commonjs: 'vue-i18n',
156
+ commonjs2: 'vue-i18n',
157
+ amd: 'vue-i18n'
158
+ },
159
+ 'js-cookie': {
160
+ root: 'JsCookie',
161
+ commonjs: 'js-cookie',
162
+ commonjs2: 'js-cookie',
163
+ amd: 'js-cookie'
164
+ }
165
+ },
140
166
  plugins: [
141
167
  new webpack.optimize.ModuleConcatenationPlugin(),
142
168
  new webpack.DefinePlugin({
@@ -10,7 +10,7 @@ module.exports = merge(webpackBaseConfig, {
10
10
  devtool: 'nosources',
11
11
  mode: "production",
12
12
  entry: {
13
- main: path.resolve(__dirname, '../src/index.js') // 将src下的index.js 作为入口点
13
+ main: path.resolve(__dirname, '../packages/index.js') // 将src下的index.js 作为入口点
14
14
  },
15
15
  output: {
16
16
  path: path.resolve(__dirname, '../lib'),