How to use filemanager-webpack-plugin - 2 common examples

To help you get started, we’ve selected a few filemanager-webpack-plugin 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 Seitenbau / SBideo / preact.config.js View on Github external
}
  );

  let API_URL;

  // Configure demo mode
  if (process.env.PUBLISH_ENV === 'github') {
    API_URL = '/SBideo/items-demo.json';
    config.output.publicPath = '/SBideo/';

    fileManagerPluginOptions.onStart.copy.push({
      source: './data-clientdemo',
      destination: env.dest
    });
  }
  config.plugins.push(new FileManagerPlugin(fileManagerPluginOptions));

  config.plugins.push(
    new helpers.webpack.DefinePlugin({
      'process.env.API_URL': JSON.stringify(API_URL || '/items.json'),
      'process.env.ASSET_PATH': JSON.stringify(
        (config.output.publicPath || '/') + 'assets/'
      )
    })
  );
};
github fullstack-development / react-redux-starter-kit / webpack / common.ts View on Github external
: [],
    )
    .concat(withAnalyze ? new BundleAnalyzerPlugin() : [])
    .concat(withHot && type !== 'prod' ? new webpack.HotModuleReplacementPlugin() : [])
    .concat(
      forGHPages
        ? new HtmlWebpackPlugin({
            filename: '404.html',
            template: 'assets/index.html',
            chunksSortMode: sortChunks,
          })
        : [],
    )
    .concat(
      forGHPages
        ? new FileManagerWebpackPlugin({
            onEnd: {
              copy: [
                {
                  source: `src/assets/ghPages/**`,
                  destination: `build`,
                },
              ],
            },
          })
        : [],
    );

filemanager-webpack-plugin

Webpack plugin to copy, archive (.zip), move, delete files and directories before and after builds

MIT
Latest version published 1 year ago

Package Health Score

53 / 100
Full package analysis

Popular filemanager-webpack-plugin functions