Add license-loader

Since xterm and hterm do not have proper comments for their license,
add license-loader to keep their license information in the minimized
bundle file.
This commit is contained in:
Iwasaki Yudai 2017-08-23 10:58:18 +09:00
parent 46a8b006f0
commit 7355d67a64
5 changed files with 76 additions and 5 deletions

File diff suppressed because one or more lines are too long

6
js/package-lock.json generated
View File

@ -1093,6 +1093,12 @@
"libapps": { "libapps": {
"version": "github:yudai/libapps#424e3e95e5346ef0c0c281aaf2ef73463a55b39e" "version": "github:yudai/libapps#424e3e95e5346ef0c0c281aaf2ef73463a55b39e"
}, },
"license-loader": {
"version": "0.5.0",
"resolved": "https://registry.npmjs.org/license-loader/-/license-loader-0.5.0.tgz",
"integrity": "sha512-4p+estbTHilHxOXv/wh8qHndksfINzBT6HGvgIU4sfwWu28kCByHGV57K/HVgSujoFFv2wCITghGbK/qRiRbUQ==",
"dev": true
},
"load-json-file": { "load-json-file": {
"version": "1.1.0", "version": "1.1.0",
"resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-1.1.0.tgz", "resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-1.1.0.tgz",

View File

@ -1,5 +1,6 @@
{ {
"devDependencies": { "devDependencies": {
"license-loader": "^0.5.0",
"ts-loader": "^2.0.3", "ts-loader": "^2.0.3",
"typescript": "^2.3.2", "typescript": "^2.3.2",
"uglifyjs-webpack-plugin": "^1.0.0-beta.2", "uglifyjs-webpack-plugin": "^1.0.0-beta.2",

View File

@ -14,7 +14,12 @@ module.exports = {
{ {
test: /\.tsx?$/, test: /\.tsx?$/,
loader: "ts-loader", loader: "ts-loader",
exclude: [/node_modules/], exclude: /node_modules/
},
{
test: /\.js$/,
include: /node_modules/,
loader: 'license-loader'
} }
] ]
}, },

File diff suppressed because one or more lines are too long