7.0.2 • Published 2 years ago
@splunk/webpack-configs v7.0.2
@splunk/webpack-configs
Standardized webpack configuration files for apps and components.
Install
Install the package and its dependencies.
- Install the peer dependencies:
npm install --save-dev @babel/core@^7 babel-loader@^8 webpack@^4
- Install the package:
npm install --save-dev @splunk/webpack-configs
Usage
Base Configuration
const webpackMerge = require('webpack-merge');
const baseConfig = require('@splunk/webpack-configs').default;
module.exports = webpackMerge(baseConfig, {
entry: {...},
output: {...},
});
Component Library
A configuration for building a library of shareable components.
const webpackMerge = require('webpack-merge');
const baseComponentConfig = require('@splunk/webpack-configs/component.config').default;
module.exports = webpackMerge(baseComponentConfig, {
entry: {...},
output: {...},
});
Dashboard Extensions
const webpackMerge = require('webpack-merge');
const baseDashboardConfig = require('@splunk/webpack-configs/dashboard.config').default;
module.exports = webpackMerge(baseDashboardConfig, {
entry: {...},
output: {...},
});
@splunk/dashboard-extension-webpack-plugin
must be added as a dev dependency if this configuration is used.
Options
All configurations export a create
function that accepts the following options:
babelTypescript
- Includes.ts
and.tsx
files in thebabel-loader
configuration used by all configurations. Defaults totrue
.
const webpackMerge = require('webpack-merge');
const createBaseConfig = require('@splunk/webpack-configs').create;
module.exports = webpackMerge(createBaseConfig({ babelTypescript: false }), {
entry: {...},
output: {...},
});
7.0.0
2 years ago
7.0.2
2 years ago
7.0.1
2 years ago
6.0.0
3 years ago
5.0.0
5 years ago
4.0.1
6 years ago
4.0.0
6 years ago
3.0.0
6 years ago
2.0.0
7 years ago
1.1.0-alpha.sha-51d7adbd
7 years ago
1.1.0-alpha.sha-37cf8114
7 years ago
1.0.2
7 years ago
1.1.0-alpha.sha-846e9716
7 years ago
1.1.0-alpha.sha-3172d6ef
7 years ago
1.1.0-alpha.sha-b5fd08bd
7 years ago
1.1.0-alpha.sha-d5300bb5
7 years ago
1.0.1
7 years ago