rm jquery

This commit is contained in:
Pan 2017-08-21 20:24:02 +08:00
parent 9768305166
commit aa5f9059b3
9 changed files with 1 additions and 20 deletions

View file

@ -105,7 +105,6 @@ npm run build:prod
│   ├── App.vue // entry view
│   └── main.js // entry for loading components, initialization
├── static // third-party libraries not packed with Webpack
│   ├── jquery
│   └── Tinymce // rich text
├── .babelrc // babel-loader config
├── eslintrc.js // eslint config

View file

@ -116,7 +116,6 @@
│   ├── App.vue // 入口页面
│   └── main.js // 入口 加载组件 初始化等
├── static // 第三方不打包资源
│   ├── jquery
│   └── Tinymce // 富文本
├── .babelrc // babel-loader 配置
├── eslintrc.js // eslint 配置项

View file

@ -35,9 +35,6 @@ module.exports = {
'static': path.resolve(__dirname, '../static')
}
},
externals: {
jquery: 'jQuery'
},
module: {
rules: [
// {

View file

@ -29,10 +29,6 @@ module.exports = merge(baseWebpackConfig, {
new webpack.DefinePlugin({
'process.env': config.dev.env
}),
new webpack.ProvidePlugin({
$: 'jquery',
'jQuery': 'jquery'
}),
// https://github.com/glenjamin/webpack-hot-middleware#installation--usage
new webpack.HotModuleReplacementPlugin(),
new webpack.NoEmitOnErrorsPlugin(),

View file

@ -106,11 +106,7 @@ var webpackConfig = merge(baseWebpackConfig, {
from: path.resolve(__dirname, '../static'),
to: config.build.assetsSubDirectory,
ignore: ['.*']
}]),
new webpack.ProvidePlugin({
$: 'jquery',
'jQuery': 'jquery'
})
}])
]
})
if (config.build.bundleAnalyzerReport) {

View file

@ -8,7 +8,6 @@
<title>Juicy</title>
</head>
<body>
<script src=<%= htmlWebpackPlugin.options.path %>/jquery.min.js></script>
<script src=<%= htmlWebpackPlugin.options.path %>/tinymce/tinymce.min.js></script>
<div id="app"></div>
<!-- built files will be auto injected -->

View file

@ -19,7 +19,6 @@
"echarts": "3.6.2",
"element-ui": "1.4.2",
"file-saver": "1.3.3",
"jquery": "3.1.1",
"js-cookie": "2.1.4",
"jsonlint": "1.6.2",
"mockjs": "1.0.1-beta3",

View file

File diff suppressed because one or more lines are too long