1
0
mirror of https://github.com/chinchang/web-maker.git synced 2025-02-22 22:24:00 +01:00

removed commented code

This commit is contained in:
Kushagra Gour 2018-06-17 00:51:24 +05:30
parent 7990b22371
commit 5178af41a2

View File

@ -28,33 +28,8 @@ export default function (config, env, helpers) {
})
);
// config.plugins.push(new CopyWebpackPlugin([{
// context: `${__dirname}/src/assets`,
// from: `*.*`
// }, {
// from: `${__dirname}/src/lib`,
// to: 'lib/'
// },
// {
// from: `${__dirname}/src/detached-window.js`
// },
// {
// from: `${__dirname}/src/*.ttf`
// },
// {
// from: `${__dirname}/src/patreon.png`
// },
// {
// from: `${__dirname}/src/preview.html`
// },
// {
// from: `${__dirname}/src/style.css`
// }
// ]));
const swPlugin = helpers.getPluginsByName(config, 'SWPrecacheWebpackPlugin')[0];
config.plugins.splice(swPlugin.index, 1)
// plugin.options.maximumFileSizeToCacheInBytes = 2900000;
const uglifyPlugin = helpers.getPluginsByName(config, 'UglifyJsPlugin')[0]
config.plugins.splice(uglifyPlugin.index, 1)