Skip to content

Commit

Permalink
Merge pull request #7 from Eazymov/WIP
Browse files Browse the repository at this point in the history
patch 1.3.4
  • Loading branch information
Eazymov authored Nov 11, 2017
2 parents d25016e + 29a1b92 commit 4da0092
Show file tree
Hide file tree
Showing 16 changed files with 364 additions and 1,721 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Include VueMce **after** vue and tinymce. VueMce will be registered as a global
```html
<script src="link/to/tinymce"></script>
<script src="link/to/vue"></script>
<script src="https://cdn.jsdelivr.net/npm/vue-mce@latest/dist/vue-mce.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/vue-mce@latest/dist/vue-mce.web.js"></script>
```

### NPM
Expand Down
8 changes: 8 additions & 0 deletions config/common.config.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
const merge = require('webpack-merge');
const baseConfig = require('./base.config.js');
const UglifyJSPlugin = require('uglifyjs-webpack-plugin');

module.exports = merge(baseConfig, {
entry: {
'vue-mce.common': './src/vue-mce.ts',
},
output: {
library: 'VueMce',
libraryTarget: 'umd',
},
plugins: [
new UglifyJSPlugin(),
],
});
2 changes: 1 addition & 1 deletion config/web.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const UglifyJSPlugin = require('uglifyjs-webpack-plugin')

module.exports = merge(baseConfig, {
entry: {
'vue-mce.min': './src/index.ts',
'vue-mce.web': './src/index.ts',
},
plugins: [
new UglifyJSPlugin(),
Expand Down
Loading

0 comments on commit 4da0092

Please sign in to comment.