UNPKG

@jaxolotl/wdclib

Version:

Required Library to bridge javascript with Tableau. Use the scripts below to create the combined shim library. i.e. npm run-script build_and_copy

40 lines (34 loc) 1.04 kB
// import webpack from 'webpack'; import { resolve } from 'path'; import { getBuildNumber } from './DevUtils/BuildNumber'; const BUILD_NUMBER = getBuildNumber({ showLog: true }); // const [MAYOR, MINOR, PATCH, ...rest] = BUILD_NUMBER.split('.'); console.log(`Building Version: ${BUILD_NUMBER}`); export default { devtool: 'cheap-module-inline-source-map', entry: ['babel-polyfill', './index'], output: { path: resolve('dist'), filename: 'bundle.js' }, module: { rules: [ { enforce: 'pre', test: /\.js$/, loader: 'eslint-loader', exclude: [ /node_modules/ ] }, { test: /\.js?$/, loader: 'babel-loader', include: [ resolve('/') ] } ] }, plugins: [] // left to be extended by production build script };