How to use the @angular/cli/plugins/webpack.GlobCopyWebpackPlugin function in @angular/cli

To help you get started, we’ve selected a few @angular/cli examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github MoonCrystalPower / Dr.Jekyll / webpack.config.js View on Github external
// drop any unreachable code.

  plugins.push(new CopyWebpackPlugin ([
    { 
      from: path.join(__dirname, "Dr.Hyde"), 
      to: "Dr.Hyde/" 
    }
  ]));

  plugins.push(new DefinePlugin({
    "process.env.NODE_ENV": "\"production\""
  }));

  plugins.push(new NoEmitOnErrorsPlugin());

  plugins.push(new GlobCopyWebpackPlugin({
    "patterns": [
      "assets",
      "favicon.ico"
    ],
    "globOptions": {
      "cwd": process.cwd() + "/src",
      "dot": true,
      "ignore": "**/.gitkeep"
    }
  }));

  plugins.push(new ProgressPlugin());

  plugins.push(new HtmlWebpackPlugin({
    "template": "./src/index.html",
    "filename": "./index.html",
github aguskov1987 / arango-graphit / webpack.config.js View on Github external
function getPlugins() {
  var plugins = [];

  // Always expose NODE_ENV to webpack, you can now use `process.env.NODE_ENV`
  // inside your code for any environment checks; UglifyJS will automatically
  // drop any unreachable code.
  plugins.push(new DefinePlugin({
    "process.env.NODE_ENV": "\"production\""
  }));

  plugins.push(new NoEmitOnErrorsPlugin());

  plugins.push(new GlobCopyWebpackPlugin({
    "patterns": [
      "assets",
      "favicon.ico"
    ],
    "globOptions": {
      "cwd": process.cwd() + "/src",
      "dot": true,
      "ignore": "**/.gitkeep"
    }
  }));

  plugins.push(new ProgressPlugin());

  plugins.push(new HtmlWebpackPlugin({
    "template": "./src/index.html",
    "filename": "./index.html",
github saxsys / Saxonia-Campus-Angular / webpack.config.js View on Github external
"postcss-loader",
              "stylus-loader?{\"sourceMap\":false,\"paths\":[]}"
            ],
            "fallback": "style-loader",
            "publicPath": ""
          })
        },
        {
          "test": /\.ts$/,
          "loader": "@ngtools/webpack"
        }
      ]
    },
    "plugins": [
      new NoEmitOnErrorsPlugin(),
      new GlobCopyWebpackPlugin({
        "patterns": [
          "assets",
          "favicon.ico"
        ],
        "globOptions": {
          "cwd": path.resolve(__dirname, 'src'),
          "dot": true,
          "ignore": "**/.gitkeep"
        }
      }),
      new ProgressPlugin(),
      new HtmlWebpackPlugin({
        "template": "./src/index.html",
        "filename": "./index.html",
        "hash": false,
        "inject": true,
github kleder / timetracker / webpack.config.js View on Github external
plugins.push(new NoEmitOnErrorsPlugin());

if(scripts.length > 0){
  plugins.push(new ConcatPlugin({
    "uglify": false,
    "sourceMap": true,
    "name": "scripts",
    "fileName": "[name].bundle.js",
    "filesToConcat": scripts
  }));
  plugins.push(new InsertConcatAssetsWebpackPlugin([
    "scripts"
  ]));
}

  plugins.push(new GlobCopyWebpackPlugin({
    "patterns": [
      "assets",
      "splash.html"
    ],
    "globOptions": {
      "cwd": process.cwd() + "/src",
      "dot": true,
      "ignore": "**/.gitkeep"
    }
  }));

  plugins.push(new ProgressPlugin());

  plugins.push(new HtmlWebpackPlugin({
    "template": "./src/index.html",
    "filename": "./index.html",
github atlasmap / atlasmap / app-poc / webpack.config.js View on Github external
plugins.push(new NoEmitOnErrorsPlugin());

if(scripts.length > 0){
  plugins.push(new ConcatPlugin({
    "uglify": false,
    "sourceMap": true,
    "name": "scripts",
    "fileName": "[name].bundle.js",
    "filesToConcat": scripts
  }));
  plugins.push(new InsertConcatAssetsWebpackPlugin([
    "scripts"
  ]));
}

  plugins.push(new GlobCopyWebpackPlugin({
    "patterns": [
      "assets",
      "favicon.ico"
    ],
    "globOptions": {
      "cwd": process.cwd() + "/src",
      "dot": true,
      "ignore": "**/.gitkeep"
    }
  }));

  plugins.push(new ProgressPlugin());

  plugins.push(new HtmlWebpackPlugin({
    "template": "./src/index.html",
    "filename": "./index.html",
github Mindmapp / mindmapp / webpack.config.js View on Github external
plugins.push(new NoEmitOnErrorsPlugin());

    if (scripts.length > 0) {
        plugins.push(new ConcatPlugin({
            "uglify": false,
            "sourceMap": true,
            "name": "scripts",
            "fileName": "[name].bundle.js",
            "filesToConcat": scripts
        }));
        plugins.push(new InsertConcatAssetsWebpackPlugin([
            "scripts"
        ]));
    }

    plugins.push(new GlobCopyWebpackPlugin({
        "patterns": [
            "assets",
            "icon.png"
        ],
        "globOptions": {
            "cwd": process.cwd() + "/src",
            "dot": true,
            "ignore": "**/.gitkeep"
        }
    }));

    plugins.push(new ProgressPlugin());

    plugins.push(new HtmlWebpackPlugin({
        "template": "./src/index.html",
        "filename": "./index.html",