refactor[tinymce]: import tinymce from npm
This commit is contained in:
@@ -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).
|
||||
|
@@ -55,8 +55,7 @@ const devWebpackConfig = merge(baseWebpackConfig, {
|
||||
template: 'index.html',
|
||||
inject: true,
|
||||
favicon: resolve('favicon.ico'),
|
||||
title: 'vue-element-admin',
|
||||
path: config.dev.assetsPublicPath + config.dev.assetsSubDirectory
|
||||
title: 'vue-element-admin'
|
||||
}),
|
||||
]
|
||||
})
|
||||
|
@@ -69,7 +69,6 @@ const webpackConfig = merge(baseWebpackConfig, {
|
||||
inject: true,
|
||||
favicon: resolve('favicon.ico'),
|
||||
title: 'vue-element-admin',
|
||||
path: config.build.assetsPublicPath + config.build.assetsSubDirectory,
|
||||
minify: {
|
||||
removeComments: true,
|
||||
collapseWhitespace: true,
|
||||
|
Reference in New Issue
Block a user