Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
new CopyWebpackPlugin([
{
from: paths.docsSrc('public'),
to: paths.docsDist('public'),
},
]),
new HtmlWebpackPlugin({
template: paths.docsSrc('index.ejs'),
filename: 'index.html',
hash: false,
inject: 'body',
minify: {
collapseWhitespace: __PROD__,
},
versions: {
babelStandalone: require('@babel/standalone/package.json').version,
lodash: require('lodash/package.json').version,
prettier: require('prettier/package.json').version,
propTypes: require('prop-types/package.json').version,
react: require('react/package.json').version,
reactDOM: require('react-dom/package.json').version,
stardust: require('../package.json').version,
reactVis: require('react-vis/package.json').version,
},
}),
new webpack.IgnorePlugin({
resourceRegExp: /^\.\/locale$/,
contextRegExp: /moment$/,
}),
__DEV__ &&
!process.env.CI &&
new webpack.ProgressPlugin({
},
]),
new webpack.DllReferencePlugin({
context: paths.base('node_modules'),
manifest: require(paths.base('dll/vendor-manifest.json')),
}),
new HtmlWebpackPlugin({
template: paths.docsSrc('index.ejs'),
filename: 'index.html',
hash: false,
inject: 'body',
minify: {
collapseWhitespace: true,
},
versions: {
babelStandalone: require('@babel/standalone/package.json').version,
lodash: require('lodash/package.json').version,
prettier: require('prettier/package.json').version,
propTypes: require('prop-types/package.json').version,
react: require('react/package.json').version,
reactDOM: require('react-dom/package.json').version,
stardust: require('../package.json').version,
reactVis: require('react-vis/package.json').version,
},
}),
new webpack.IgnorePlugin({
resourceRegExp: /^\.\/locale$/,
contextRegExp: /moment$/,
}),
],
resolve: {
extensions: ['.ts', '.tsx', '.js', '.json'],