Comparing version 1.0.0 to 1.0.1
{ | ||
"name": "jr-table", | ||
"version": "1.0.0", | ||
"main": "./table/index.js", | ||
"version": "1.0.1", | ||
"main": "./dist/jr-table.min.js", | ||
"author": "wudongyue", | ||
@@ -6,0 +6,0 @@ "license": "MIT", |
@@ -5,3 +5,3 @@ import Vue from 'vue' | ||
import '../table/lib/css/base.css' | ||
Vue.use(jrtable) | ||
@@ -8,0 +8,0 @@ |
import JrTable from './jrtable.vue' | ||
import JrTableColumn from './table-column' | ||
import './lib/css/base.css' | ||
export default { | ||
@@ -5,0 +6,0 @@ install(Vue, options) { |
import Vue from 'vue'; | ||
import debounce from 'throttle-debounce/debounce'; | ||
@@ -191,3 +190,3 @@ import { POINT_CONVERSION_COMPRESSED } from 'constants'; | ||
// Vue.nextTick(() => this.table.updateScrollY()); | ||
}, | ||
@@ -194,0 +193,0 @@ setRowExpanded(states, rowExpanded){ |
var path = require('path'); | ||
var webpack = require('webpack'); | ||
const HtmlWebpackPlugin = require('html-webpack-plugin') | ||
const CopyWebpackPlugin = require('copy-webpack-plugin') | ||
const _entry = (() => { | ||
var NODE_ENV = process.env.NODE_ENV; | ||
if(NODE_ENV === 'production'){ | ||
return path.resolve(__dirname, 'table/index.js') | ||
}else { | ||
return path.resolve(__dirname, 'src/main.js') | ||
} | ||
})() | ||
module.exports = { | ||
mode:process.env.NODE_ENV, | ||
entry:{ | ||
main:'./src/main.js' | ||
main:_entry | ||
}, | ||
@@ -14,3 +25,3 @@ output: { | ||
publicPath:'/', | ||
filename:'./static/js/[name].[hash:8].js' | ||
filename:'jr-table.min.js' | ||
}, | ||
@@ -52,3 +63,3 @@ externals:{ | ||
options: { | ||
name: 'static/images/icon/[name].[ext]' | ||
name: 'images/icon/[name].[ext]' | ||
} | ||
@@ -62,3 +73,3 @@ }, | ||
options: { | ||
name: 'static/images/[name]-[hash:5].[ext]' | ||
name: 'images/[name]-[hash:5].[ext]' | ||
} | ||
@@ -101,12 +112,18 @@ }, | ||
plugins:[ | ||
new HtmlWebpackPlugin({ | ||
filename: 'index.html', | ||
template: 'index.html', | ||
inject: true | ||
}), | ||
// copy custom static assets | ||
] | ||
} | ||
if(process.env.NODE_ENV === 'development'){ | ||
module.exports.plugins = (module.exports.plugins || []).concat([new webpack.DefinePlugin({ | ||
'process.env': { | ||
NODE_ENV: '"development"' | ||
} | ||
})], | ||
new HtmlWebpackPlugin({ | ||
filename: 'index.html', | ||
template: 'index.html', | ||
inject: true | ||
})) | ||
} |
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
58057
19
759
4