refactor: rename plugins

This commit is contained in:
Igor Randjelovic
2020-11-17 17:46:46 +01:00
committed by Nathan Walker
parent 4e9750398e
commit b770e2a69c
5 changed files with 73 additions and 32 deletions

View File

@@ -25,7 +25,10 @@ exports[`react configuration for android 1`] = `
rules: [
/* config.module.rule('ts') */
{
test: /\\\\.(ts|tsx)$/,
test: [
/\\\\.ts$/,
/\\\\.tsx$/
],
use: [
/* config.module.rule('ts').use('react-hmr') */
{
@@ -94,7 +97,7 @@ exports[`react configuration for android 1`] = `
]
},
plugins: [
/* config.plugin('clean') */
/* config.plugin('CleanWebpackPlugin') */
new CleanWebpackPlugin(
{
cleanOnceBeforeBuildPatterns: [
@@ -103,7 +106,7 @@ exports[`react configuration for android 1`] = `
verbose: true
}
),
/* config.plugin('define') */
/* config.plugin('DefinePlugin') */
new DefinePlugin(
{
'global.NS_WEBPACK': true,
@@ -115,14 +118,21 @@ exports[`react configuration for android 1`] = `
'process.env.NODE_ENV': '\\"development\\"'
}
),
/* config.plugin('copy') */
/* config.plugin('CopyWebpackPlugin') */
new CopyPluginTemp(
{
patterns: []
}
),
/* config.plugin('watch-state-logger') */
new WatchStateLoggerPlugin()
/* config.plugin('WatchStateLoggerPlugin') */
new WatchStateLoggerPlugin(),
/* config.plugin('ReactRefreshWebpackPlugin') */
new ReactRefreshWebpackPlugin(
{
overlay: false,
forceEnable: false
}
)
],
entry: {
bundle: [
@@ -157,7 +167,10 @@ exports[`react configuration for ios 1`] = `
rules: [
/* config.module.rule('ts') */
{
test: /\\\\.(ts|tsx)$/,
test: [
/\\\\.ts$/,
/\\\\.tsx$/
],
use: [
/* config.module.rule('ts').use('react-hmr') */
{
@@ -226,7 +239,7 @@ exports[`react configuration for ios 1`] = `
]
},
plugins: [
/* config.plugin('clean') */
/* config.plugin('CleanWebpackPlugin') */
new CleanWebpackPlugin(
{
cleanOnceBeforeBuildPatterns: [
@@ -235,7 +248,7 @@ exports[`react configuration for ios 1`] = `
verbose: true
}
),
/* config.plugin('define') */
/* config.plugin('DefinePlugin') */
new DefinePlugin(
{
'global.NS_WEBPACK': true,
@@ -247,14 +260,21 @@ exports[`react configuration for ios 1`] = `
'process.env.NODE_ENV': '\\"development\\"'
}
),
/* config.plugin('copy') */
/* config.plugin('CopyWebpackPlugin') */
new CopyPluginTemp(
{
patterns: []
}
),
/* config.plugin('watch-state-logger') */
new WatchStateLoggerPlugin()
/* config.plugin('WatchStateLoggerPlugin') */
new WatchStateLoggerPlugin(),
/* config.plugin('ReactRefreshWebpackPlugin') */
new ReactRefreshWebpackPlugin(
{
overlay: false,
forceEnable: false
}
)
],
entry: {
inspector_modules: [

View File

@@ -25,7 +25,9 @@ exports[`vue configuration for android 1`] = `
rules: [
/* config.module.rule('ts') */
{
test: /\\\\.ts$/,
test: [
/\\\\.ts$/
],
use: [
/* config.module.rule('ts').use('ts-loader') */
{
@@ -99,7 +101,7 @@ exports[`vue configuration for android 1`] = `
]
},
plugins: [
/* config.plugin('clean') */
/* config.plugin('CleanWebpackPlugin') */
new CleanWebpackPlugin(
{
cleanOnceBeforeBuildPatterns: [
@@ -108,7 +110,7 @@ exports[`vue configuration for android 1`] = `
verbose: true
}
),
/* config.plugin('define') */
/* config.plugin('DefinePlugin') */
new DefinePlugin(
{
'global.NS_WEBPACK': true,
@@ -117,15 +119,15 @@ exports[`vue configuration for android 1`] = `
process: 'global.process'
}
),
/* config.plugin('copy') */
/* config.plugin('CopyWebpackPlugin') */
new CopyPluginTemp(
{
patterns: []
}
),
/* config.plugin('watch-state-logger') */
/* config.plugin('WatchStateLoggerPlugin') */
new WatchStateLoggerPlugin(),
/* config.plugin('vue') */
/* config.plugin('VueLoaderPlugin') */
new VueLoaderPlugin()
],
entry: {
@@ -161,7 +163,9 @@ exports[`vue configuration for ios 1`] = `
rules: [
/* config.module.rule('ts') */
{
test: /\\\\.ts$/,
test: [
/\\\\.ts$/
],
use: [
/* config.module.rule('ts').use('ts-loader') */
{
@@ -235,7 +239,7 @@ exports[`vue configuration for ios 1`] = `
]
},
plugins: [
/* config.plugin('clean') */
/* config.plugin('CleanWebpackPlugin') */
new CleanWebpackPlugin(
{
cleanOnceBeforeBuildPatterns: [
@@ -244,7 +248,7 @@ exports[`vue configuration for ios 1`] = `
verbose: true
}
),
/* config.plugin('define') */
/* config.plugin('DefinePlugin') */
new DefinePlugin(
{
'global.NS_WEBPACK': true,
@@ -253,15 +257,15 @@ exports[`vue configuration for ios 1`] = `
process: 'global.process'
}
),
/* config.plugin('copy') */
/* config.plugin('CopyWebpackPlugin') */
new CopyPluginTemp(
{
patterns: []
}
),
/* config.plugin('watch-state-logger') */
/* config.plugin('WatchStateLoggerPlugin') */
new WatchStateLoggerPlugin(),
/* config.plugin('vue') */
/* config.plugin('VueLoaderPlugin') */
new VueLoaderPlugin()
],
entry: {