refactor[tinymce]: import tinymce from npm

This commit is contained in:
Pan
2018-01-31 14:13:20 +08:00
parent 09e613b33a
commit e504ae533a
29 changed files with 93 additions and 5397 deletions

View File

@@ -3,6 +3,7 @@ const path = require('path')
const utils = require('./utils')
const config = require('../config')
const vueLoaderConfig = require('./vue-loader.conf')
const CopyWebpackPlugin = require('copy-webpack-plugin')
function resolve (dir) {
return path.join(__dirname, '..', dir)
@@ -86,6 +87,13 @@ module.exports = {
}
]
},
plugins:[
new CopyWebpackPlugin([
{
from: 'static/tinymce'
}
])
],
node: {
// prevent webpack from injecting useless setImmediate polyfill because Vue
// source contains it (although only uses it if it's native).