如何修复从Azure到Dreamhost的部署/发布?我发布失败,但构建成功

时间:2019-04-16 14:00:43

标签: javascript html webpack

我能够获得“成功的构建”,但是我不知道将构建打包到何处。我正在尝试将build.js文件与索引一起上传到Dreamhost服务器。我的构建成功,但是发布失败。与服务器的连接已验证。这是我得到的错误-

 web.config not found in project, to create a project to deploy to 
      Microsoft Azure you must create an Azure Node.js project.
         Done executing task "Error" -- FAILED.
         Done building target "CollectNodejsFiles" in project 
         "VuejsApp11.njsproj" -- FAILED.
         Done building project "VuejsApp11.njsproj" -- FAILED."

但是我不打算部署到Azure ...

我已经尝试在webpack.config.js的module.exports中弄乱,但仍然没有任何导出或运气。

const path = require('path')
var webpack = require('webpack')
const UglifyJsPlugin = require('uglifyjs-webpack-plugin');


module.exports = {
entry: './src/main.js',
output: {
    path: path.resolve(__dirname, 'dist'),
    filename: 'build.js',
    mode: 'production',
optimization: {
    minimizer: [
        new UglifyJsPlugin({
            sourceMap: true,
            uglifyOptions: {
                compress: false,
                ecma: 6,
                mangle: true
            },
        })
    ]
}
},

0 个答案:

没有答案