forked from 10up/distributor
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwebpack.config.release.js
More file actions
35 lines (35 loc) · 931 Bytes
/
webpack.config.release.js
File metadata and controls
35 lines (35 loc) · 931 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
const CopyPlugin = require( 'copy-webpack-plugin' );
const { resolve } = require( 'path' );
module.exports = {
entry: {},
output: {
path: resolve( process.cwd(), 'release' ),
clean: true,
},
plugins: [
new CopyPlugin( {
patterns: [
{ from: 'readme.txt', to: './' },
{ from: 'README.md', to: './' },
{ from: 'CHANGELOG.md', to: './' },
{ from: 'composer.json', to: './' },
{ from: 'distributor.php', to: './' },
{ from: '.github/workflows/*', to: './' },
{ from: '.gitattributes', to: './' },
{ from: 'assets/img/*', to: './' },
{ from: 'dist/**/*', to: './' },
{ from: 'includes/**/*', to: './' },
{ from: 'lang/**/*', to: './' },
{ from: 'templates/**/*', to: './' },
{
from: 'vendor/georgestephanis/application-passwords/**/*',
to: './',
},
{
from: 'vendor/yahnis-elsts/plugin-update-checker/**/*',
to: './',
},
],
} ),
],
};