小编Ale*_*lov的帖子

在Visual Studio代码中剪切线快捷方式(VS中的Ctrl + L)(不删除行!)

Visual Studio默认使用快捷键Ctrl + l(剪切线).它将光标所在的行复制到剪贴板并删除它.

我在Visual Studio Code中找不到它.有没有办法将其添加为最终用户?

(我知道删除行有Ctrl + Shift + K,这是不一样的)

keyboard-shortcuts visual-studio-code

17
推荐指数
3
解决办法
8908
查看次数

更改 Vue.js CLI 中 chunk-vendors.js 的路径(webpack 配置)

我有以下内容vue.config.js

module.exports = {
filenameHashing: false,
productionSourceMap: false,
outputDir: '../vuejs/',
configureWebpack: {
    devtool: 'source-map',
    output: {
        filename: '[name].js'
    }
},
pages: {
    feature1: {
        entry: 'src/f1.js',
        template: 'public/feature.html',
        filename: 'index1.html',
        title: 'Feature 1',
        chunks: ['chunk-vendors', 'chunk-common', 'feature1']
    },
    feature2: {
        entry: 'src/f2.js',
        template: 'public/feature.html',
        filename: 'index2.html',
        title: 'Feature 2',
        chunks: ['chunk-vendors', 'chunk-common', 'feature2']
    }
} 
}
Run Code Online (Sandbox Code Playgroud)

其上npm run build生成:

index1.html 
index2.html 
feature1.js 
feature2.js 
js/chunk-vendors.js
Run Code Online (Sandbox Code Playgroud)

在 dist 文件夹中 ( ../vuejs/)

我如何更改配置,以便chunk-vendors.js将文件放置在根文件夹中(其中feature1.jsfeature2.js …

configuration command-line-interface webpack vue.js

4
推荐指数
1
解决办法
8544
查看次数