extend(config, ctx) {
      // console.log('Webpack base config...');
      // console.log(JSON.stringify(config));

      if (ctx.isDev && ctx.isClient) {
        config.devtool = '#source-map';
      }

      if (ctx.isServer) {
        config.externals = [
          nodeExternals({
            whitelist: [/^vuetify/]
          })
        ];
      }

      // Uglify and strip console.log in production
      if (!ctx.isDev) {
        config.plugins.push(
          new UglifyJsPlugin({
            uglifyOptions: {
              compress: {
                inline: false,
                drop_console: true
              }
            }
          })
        );
      }

      const vueLoaderConfig = config.module.rules.find(el => el.loader === 'vue-loader').options;
      vueLoaderConfig.loaders.docs = require.resolve('./webpack/docs-loader.js');
      // console.log('vue-loader options...');
      // console.log(vueLoaderConfig.loaders);
    }
/*
     ** You can extend webpack config here
     */
You can extend webpack config here
You can extend webpack config here
extend(config, ctx) {
      if (ctx.isDev && ctx.isClient) {
        config.devtool = '#source-map';
      }
      if (ctx.isServer) {
        config.externals = [
          nodeExternals({
            whitelist: [/^vuetify/]
          })
        ];
      }
      if (!ctx.isDev) {
        config.plugins.push(
          new UglifyJsPlugin({
            uglifyOptions: {
              compress: {
                inline: false,
                drop_console: true
              }
            }
          })
        );
      }
      const vueLoaderConfig = config.module.rules.find(el => el.loader === 'vue-loader').options;
      vueLoaderConfig.loaders.docs = require.resolve('./webpack/docs-loader.js');
    }
extend ( config , ctx ) { if ( ctx . isDev && ctx . isClient ) { config . devtool = '#source-map' ; } if ( ctx . isServer ) { config . externals = [ nodeExternals ( { whitelist : [ / ^vuetify / ] } ) ] ; } if ( ! ctx . isDev ) { config . plugins . push ( new UglifyJsPlugin ( { uglifyOptions : { compress : { inline : false , drop_console : true } } } ) ) ; } const vueLoaderConfig = config . module . rules . find ( el => el . loader === 'vue-loader' ) . options ; vueLoaderConfig . loaders . docs = require . resolve ( './webpack/docs-loader.js' ) ; }
You can extend webpack config here
You can extend webpack config here
// console.log('Webpack base config...'); // console.log(JSON.stringify(config)); // Uglify and strip console.log in production // console.log('vue-loader options...'); // console.log(vueLoaderConfig.loaders);