Skip to content

Commit baa18e5

Browse files
committed
Added copying files
1 parent 6904779 commit baa18e5

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
"babel-preset-es2015": "^6.24.1",
3131
"clean-webpack-plugin": "^0.1.17",
3232
"concurrently": "^3.5.0",
33+
"copy-webpack-plugin": "^4.2.0",
3334
"jasmine-core": "^2.8.0",
3435
"jshint": "^2.9.5",
3536
"jshint-loader": "^0.8.4",

webpack/config.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
const path = require('path');
22
const webpack = require('webpack');
33
const CleanWebpackPlugin = require('clean-webpack-plugin');
4+
const CopyWebpackPlugin = require('copy-webpack-plugin');
45

56
const packageJSON = require('../package.json');
67

@@ -70,7 +71,11 @@ if (ENV === 'production') {
7071
comments: false,
7172
},
7273
include: /\.min\.js$/
73-
})
74+
}),
75+
new CopyWebpackPlugin([
76+
{from: 'src/ui-scroll-jqlite.js', to: 'ui-scroll-jqlite.min.js'},
77+
{from: 'src/ui-scroll-jqlite.js', to: 'ui-scroll-jqlite.js'}
78+
], {copyUnmodified: true})
7479
],
7580

7681
watch: false

0 commit comments

Comments
 (0)