mirror of https://github.com/rancher/dashboard.git
Remove tests from build artifacts
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
This commit is contained in:
parent
994b21a108
commit
a70299555b
|
|
@ -551,6 +551,8 @@ module.exports = function(dir, _appConfig) {
|
||||||
// The static assets need to be in the built assets directory in order to get served (primarily the favicon)
|
// The static assets need to be in the built assets directory in order to get served (primarily the favicon)
|
||||||
config.plugins.push(new CopyWebpackPlugin({ patterns: [{ from: path.join(SHELL_ABS, 'static'), to: '.' }] }));
|
config.plugins.push(new CopyWebpackPlugin({ patterns: [{ from: path.join(SHELL_ABS, 'static'), to: '.' }] }));
|
||||||
|
|
||||||
|
config.plugins.push(new webpack.IgnorePlugin({ resourceRegExp: /\/__tests__\// }));
|
||||||
|
|
||||||
config.resolve.extensions.push(...['.tsx', '.ts', '.js', '.vue', '.scss']);
|
config.resolve.extensions.push(...['.tsx', '.ts', '.js', '.vue', '.scss']);
|
||||||
config.watchOptions = {
|
config.watchOptions = {
|
||||||
...(config.watchOptions || {}),
|
...(config.watchOptions || {}),
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue