|
@@ -12,23 +12,7 @@ ${fs.readFileSync('./LICENSE.BSD', 'utf8')}
|
|
*/`;
|
|
*/`;
|
|
}
|
|
}
|
|
|
|
|
|
-const isTravisEnv = process.env.TRAVIS ? JSON.parse(process.env.TRAVIS) : false;
|
|
|
|
-const plugins = [
|
|
|
|
- new webpack.BannerPlugin(
|
|
|
|
- {
|
|
|
|
- banner: `${getLicenseText()}\n\nrequire("source-map-support").install();\n`,
|
|
|
|
- raw: true,
|
|
|
|
- entryOnly: false
|
|
|
|
- }
|
|
|
|
- )
|
|
|
|
-];
|
|
|
|
-
|
|
|
|
-if (isTravisEnv) {
|
|
|
|
- plugins.push(new webpack.NoErrorsPlugin());
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
module.exports = {
|
|
module.exports = {
|
|
- bail: isTravisEnv,
|
|
|
|
entry: {
|
|
entry: {
|
|
'index': './index.ts'
|
|
'index': './index.ts'
|
|
},
|
|
},
|
|
@@ -44,7 +28,15 @@ module.exports = {
|
|
extensions: ['', '.ts'],
|
|
extensions: ['', '.ts'],
|
|
modulesDirectories: ['./src', './node_modules']
|
|
modulesDirectories: ['./src', './node_modules']
|
|
},
|
|
},
|
|
- plugins: plugins,
|
|
|
|
|
|
+ plugins: [
|
|
|
|
+ new webpack.BannerPlugin(
|
|
|
|
+ {
|
|
|
|
+ banner: `${getLicenseText()}\n\nrequire("source-map-support").install();\n`,
|
|
|
|
+ raw: true,
|
|
|
|
+ entryOnly: false
|
|
|
|
+ }
|
|
|
|
+ )
|
|
|
|
+ ],
|
|
output: {
|
|
output: {
|
|
path: './dist',
|
|
path: './dist',
|
|
filename: '[name].js',
|
|
filename: '[name].js',
|