-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #175 from vios-fish/dependabot/npm_and_yarn/front/…
…develop/copy-webpack-plugin-6.4.1 Dependabot/npm and yarn/front/develop/copy webpack plugin 6.4.1
- Loading branch information
Showing
5 changed files
with
421 additions
and
197 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,39 @@ | ||
const webpack = require('webpack') | ||
const merge = require('webpack-merge') | ||
const common = require('./webpack.common.js') | ||
const path = require('path') | ||
const BundleTracker = require('webpack-bundle-tracker') | ||
const CopyWebpackPlugin = require('copy-webpack-plugin') | ||
const webpack = require('webpack'); | ||
const merge = require('webpack-merge'); | ||
const common = require('./webpack.common.js'); | ||
const path = require('path'); | ||
const BundleTracker = require('webpack-bundle-tracker'); | ||
const CopyWebpackPlugin = require('copy-webpack-plugin'); | ||
|
||
module.exports = merge(common, { | ||
devtool: 'inline-source-map', | ||
plugins: [ | ||
new webpack.HotModuleReplacementPlugin(), | ||
new BundleTracker({filename: 'webpack-stats.json'}), | ||
new webpack.ProvidePlugin({ | ||
$: 'jquery', | ||
jQuery: 'jquery', | ||
'window.jQuery': 'jquery' | ||
}), | ||
new CopyWebpackPlugin([ | ||
{ | ||
from: path.resolve(__dirname, 'static/img/'), | ||
to: path.resolve(__dirname, 'dist/img/') | ||
}, | ||
{ | ||
from: path.resolve(__dirname, 'static/css/'), | ||
to: path.resolve(__dirname, 'dist/css/') | ||
}, | ||
{ | ||
from: path.resolve(__dirname, 'static/js/'), | ||
to: path.resolve(__dirname, 'dist/js/') | ||
}, | ||
{ | ||
from: path.resolve(__dirname, 'static/fonts/'), | ||
to: path.resolve(__dirname, 'dist/fonts/') | ||
}, | ||
]) | ||
] | ||
}) | ||
devtool: 'inline-source-map', | ||
plugins: [ | ||
new webpack.HotModuleReplacementPlugin(), | ||
new BundleTracker({ filename: 'webpack-stats.json' }), | ||
new webpack.ProvidePlugin({ | ||
$: 'jquery', | ||
jQuery: 'jquery', | ||
'window.jQuery': 'jquery' | ||
}), | ||
new CopyWebpackPlugin({ | ||
patterns: [ | ||
{ | ||
from: path.resolve(__dirname, 'static/img/'), | ||
to: path.resolve(__dirname, 'dist/img/') | ||
}, | ||
{ | ||
from: path.resolve(__dirname, 'static/css/'), | ||
to: path.resolve(__dirname, 'dist/css/') | ||
}, | ||
{ | ||
from: path.resolve(__dirname, 'static/js/'), | ||
to: path.resolve(__dirname, 'dist/js/') | ||
}, | ||
{ | ||
from: path.resolve(__dirname, 'static/fonts/'), | ||
to: path.resolve(__dirname, 'dist/fonts/') | ||
} | ||
] | ||
}) | ||
] | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,40 @@ | ||
const webpack = require('webpack') | ||
const merge = require('webpack-merge') | ||
const common = require('./webpack.common.js') | ||
const path = require('path') | ||
const BundleTracker = require('webpack-bundle-tracker') | ||
const UglifyEsPlugin = require('uglify-es-webpack-plugin') | ||
const CopyWebpackPlugin = require('copy-webpack-plugin') | ||
const webpack = require('webpack'); | ||
const merge = require('webpack-merge'); | ||
const common = require('./webpack.common.js'); | ||
const path = require('path'); | ||
const BundleTracker = require('webpack-bundle-tracker'); | ||
const UglifyEsPlugin = require('uglify-es-webpack-plugin'); | ||
const CopyWebpackPlugin = require('copy-webpack-plugin'); | ||
|
||
module.exports = merge(common, { | ||
plugins: [ | ||
new webpack.HotModuleReplacementPlugin(), | ||
new BundleTracker({filename: 'webpack-stats.json'}), | ||
new UglifyEsPlugin(), | ||
new webpack.ProvidePlugin({ | ||
$: 'jquery', | ||
jQuery: 'jquery', | ||
'window.jQuery': 'jquery' | ||
}), | ||
new CopyWebpackPlugin([ | ||
{ | ||
from: path.resolve(__dirname, 'static/img/'), | ||
to: path.resolve(__dirname, 'dist/img/') | ||
}, | ||
{ | ||
from: path.resolve(__dirname, 'static/css/'), | ||
to: path.resolve(__dirname, 'dist/css/') | ||
}, | ||
{ | ||
from: path.resolve(__dirname, 'static/js/'), | ||
to: path.resolve(__dirname, 'dist/js/') | ||
}, | ||
{ | ||
from: path.resolve(__dirname, 'static/fonts/'), | ||
to: path.resolve(__dirname, 'dist/fonts/') | ||
}, | ||
]) | ||
], | ||
}) | ||
plugins: [ | ||
new webpack.HotModuleReplacementPlugin(), | ||
new BundleTracker({ filename: 'webpack-stats.json' }), | ||
new UglifyEsPlugin(), | ||
new webpack.ProvidePlugin({ | ||
$: 'jquery', | ||
jQuery: 'jquery', | ||
'window.jQuery': 'jquery' | ||
}), | ||
new CopyWebpackPlugin({ | ||
patterns: [ | ||
{ | ||
from: path.resolve(__dirname, 'static/img/'), | ||
to: path.resolve(__dirname, 'dist/img/') | ||
}, | ||
{ | ||
from: path.resolve(__dirname, 'static/css/'), | ||
to: path.resolve(__dirname, 'dist/css/') | ||
}, | ||
{ | ||
from: path.resolve(__dirname, 'static/js/'), | ||
to: path.resolve(__dirname, 'dist/js/') | ||
}, | ||
{ | ||
from: path.resolve(__dirname, 'static/fonts/'), | ||
to: path.resolve(__dirname, 'dist/fonts/') | ||
} | ||
] | ||
}) | ||
] | ||
}); |
Oops, something went wrong.