Skip to content

Commit 5765c9a

Browse files
committed
adjusted webpack options, updated userscript headers
1 parent 55fbcca commit 5765c9a

File tree

3 files changed

+19
-10
lines changed

3 files changed

+19
-10
lines changed

CoubDownload-Bridge-Userscript/dist/coub-bridge.user.js

Lines changed: 16 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

CoubDownload-Bridge-Userscript/src/banner.template

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// ==UserScript==
22
// @name {{name}}
33
// @namespace {{repository}}
4+
// @copyright 2021, {{name}} ({{repository}})
45
// @version {{version}}
56
// @description {{description}}
67
// @author {{author}}

CoubDownload-Bridge-Userscript/webpack.mix.js

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,6 @@ mix.before(() => {
4343
});
4444
mix.setPublicPath("dist");
4545
mix.webpackConfig({
46-
optimization: {
47-
minimize: !isDev,
48-
minimizer: [
49-
new UglifyJsPlugin({
50-
exclude: /\/excludes/,
51-
}),
52-
]
53-
},
5446
plugins: [
5547
new DefinePlugin({
5648
COUB_DL_CONTEXT: JSON.stringify({
@@ -64,7 +56,7 @@ mix.webpackConfig({
6456
}),
6557
new BannerPlugin({
6658
banner: () => bannerContent,
67-
raw: true,
59+
raw: true
6860
}),
6961
],
7062
});
@@ -75,7 +67,7 @@ mix.options({
7567
filename: ({ filename }) => {
7668
return filename;
7769
},
78-
banner: () => bannerContent,
70+
banner: bannerContent,
7971
},
8072
},
8173
});

0 commit comments

Comments
 (0)