-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
Closed
Description
Version
3.0.0-rc.3
Reproduction link
https://gist.github.com/pendenaor/591d5ffb3af4edbe640d20abeb8d999d
Steps to reproduce
- create an app with vue-cli 3 rc3
- copy App.vue and vue.config.js
- Run the app
What is expected?
jQuery and lodash are available
What is actually happening?
jQuery and lodash are 'undefined'
inspect command output
...
plugins: [
/* config.plugin('vue-loader') */
new VueLoaderPlugin(),
/* config.plugin('define') */
new DefinePlugin(
{
'process.env': {
NODE_ENV: '"development"',
VUE_APP_CLI_UI_URL: '""',
BASE_URL: '"/"'
}
}
),
/* config.plugin('case-sensitive-paths') */
new CaseSensitivePathsPlugin(),
/* config.plugin('friendly-errors') */
new FriendlyErrorsWebpackPlugin(
{
additionalTransformers: [
function () { /* omitted long function */ }
],
additionalFormatters: [
function () { /* omitted long function */ }
]
}
),
/* config.plugin('hmr') */
new HotModuleReplacementPlugin(),
/* config.plugin('no-emit-on-errors') */
new NoEmitOnErrorsPlugin(),
/* config.plugin('progress') */
new ProgressPlugin(),
/* config.plugin('html') */
new HtmlWebpackPlugin(
{
templateParameters: function () { /* omitted long function */ },
template: 'C:\\Public\\Repo\\new-vue-cli\\sinoc_ui\\public\\index.html'
}
),
/* config.plugin('preload') */
new PreloadPlugin(
{
rel: 'preload',
include: 'initial',
fileBlacklist: [
/\.map$/,
/hot-update\.js$/
]
}
),
/* config.plugin('prefetch') */
new PreloadPlugin(
{
rel: 'prefetch',
include: 'asyncChunks'
}
),
/* config.plugin('copy') */
new CopyWebpackPlugin(
[
{
from: 'C:\\Public\\Repo\\new-vue-cli\\sinoc_ui\\public',
to: 'C:\\Public\\Repo\\new-vue-cli\\sinoc_ui\\dist',
ignore: [
'index.html',
'.DS_Store'
]
}
]
),
{
definitions: {
$: 'jquery',
jquery: 'jquery',
'window.jQuery': 'jquery',
jQuery: 'jquery',
_: 'lodash'
}
}
],
...
Metadata
Metadata
Assignees
Labels
No labels