12345678910111213141516171819202122232425262728293031323334353637383940 |
- const path = require('path');
- const HtmlWebpackPlugin = require('html-webpack-plugin');
- const VueLoaderPlugin = require('vue-loader/lib/plugin');
- const {
- CleanWebpackPlugin
- } = require('clean-webpack-plugin');
- const CopyWebpackPlugin = require('copy-webpack-plugin');
- const WebpackSftpClient = require('webpack-sftp-client');
- module.exports = {
- mode: 'production',
- output: {
- path: path.resolve(__dirname, './../dist'),
- filename: 'js/[hash].min.js'
- },
- plugins: [
- new CopyWebpackPlugin([{
- from: "src/public",
- to:"public"
- }]),
- new HtmlWebpackPlugin({
- template: 'index.html',
- minify: {
- collapseWhitespace: true,
- },
- hash: true,
- }),
- new VueLoaderPlugin(),
-
- new CleanWebpackPlugin()
- ]
- }
|