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 │   ├── App.vue // entry view
│   └── main.js // entry for loading components, initialization │   └── main.js // entry for loading components, initialization
├── static // third-party libraries not packed with Webpack ├── static // third-party libraries not packed with Webpack
│   ├── jquery
│   └── Tinymce // rich text │   └── Tinymce // rich text
├── .babelrc // babel-loader config ├── .babelrc // babel-loader config
├── eslintrc.js // eslint config ├── eslintrc.js // eslint config

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

File diff suppressed because one or more lines are too long