Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
躺着数星星
vue-element-admin
提交
56f67f05
V
vue-element-admin
项目概览
躺着数星星
/
vue-element-admin
与 Fork 源项目一致
Fork自
m0_73228581 / vue-element-admin
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
V
vue-element-admin
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
56f67f05
编写于
1月 31, 2018
作者:
P
Pan
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
perf[chore]: webpack
上级
e504ae53
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
26 addition
and
10 deletion
+26
-10
build/webpack.base.conf.js
build/webpack.base.conf.js
+0
-8
build/webpack.dev.conf.js
build/webpack.dev.conf.js
+16
-2
build/webpack.prod.conf.js
build/webpack.prod.conf.js
+8
-0
src/components/Tinymce/index.vue
src/components/Tinymce/index.vue
+2
-0
未找到文件。
build/webpack.base.conf.js
浏览文件 @
56f67f05
...
...
@@ -3,7 +3,6 @@ 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
)
...
...
@@ -87,13 +86,6 @@ 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).
...
...
build/webpack.dev.conf.js
浏览文件 @
56f67f05
'
use strict
'
const
path
=
require
(
'
path
'
)
const
utils
=
require
(
'
./utils
'
)
const
webpack
=
require
(
'
webpack
'
)
const
config
=
require
(
'
../config
'
)
const
merge
=
require
(
'
webpack-merge
'
)
const
path
=
require
(
'
path
'
)
const
baseWebpackConfig
=
require
(
'
./webpack.base.conf
'
)
const
CopyWebpackPlugin
=
require
(
'
copy-webpack-plugin
'
)
const
HtmlWebpackPlugin
=
require
(
'
html-webpack-plugin
'
)
const
FriendlyErrorsPlugin
=
require
(
'
friendly-errors-webpack-plugin
'
)
const
portfinder
=
require
(
'
portfinder
'
)
...
...
@@ -26,8 +27,13 @@ const devWebpackConfig = merge(baseWebpackConfig, {
// these devServer options should be customized in /config/index.js
devServer
:
{
clientLogLevel
:
'
warning
'
,
historyApiFallback
:
true
,
historyApiFallback
:
{
rewrites
:
[
{
from
:
/.*/
,
to
:
path
.
posix
.
join
(
config
.
dev
.
assetsPublicPath
,
'
index.html
'
)
},
],
},
hot
:
true
,
contentBase
:
false
,
// since we use CopyWebpackPlugin.
compress
:
true
,
host
:
HOST
||
config
.
dev
.
host
,
port
:
PORT
||
config
.
dev
.
port
,
...
...
@@ -57,6 +63,14 @@ const devWebpackConfig = merge(baseWebpackConfig, {
favicon
:
resolve
(
'
favicon.ico
'
),
title
:
'
vue-element-admin
'
}),
// copy custom static assets
new
CopyWebpackPlugin
([
{
from
:
path
.
resolve
(
__dirname
,
'
../static
'
),
to
:
config
.
dev
.
assetsSubDirectory
,
ignore
:
[
'
.*
'
]
}
])
]
})
...
...
build/webpack.prod.conf.js
浏览文件 @
56f67f05
...
...
@@ -127,6 +127,14 @@ const webpackConfig = merge(baseWebpackConfig, {
var
context
=
module
.
context
;
return
context
&&
(
context
.
indexOf
(
'
xlsx
'
)
>=
0
);
}
}),
// split tinymce into its own file
new
webpack
.
optimize
.
CommonsChunkPlugin
({
async
:
'
tinymce
'
,
minChunks
(
module
)
{
var
context
=
module
.
context
;
return
context
&&
(
context
.
indexOf
(
'
tinymce
'
)
>=
0
);
}
}),
// split codemirror into its own file
new
webpack
.
optimize
.
CommonsChunkPlugin
({
...
...
src/components/Tinymce/index.vue
浏览文件 @
56f67f05
...
...
@@ -11,6 +11,8 @@
// Import Tinymce
import
tinymce
from
'
tinymce/tinymce
'
tinymce
.
baseURL
=
'
static/tinymce
'
// A theme is also required
import
'
tinymce/themes/modern/theme
'
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录