mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2025-07-27 08:30:02 +03:00
Set mode
This commit is contained in:
parent
23ac467a72
commit
d32d4f3a77
|
@ -8,7 +8,7 @@ const mock = `${extpath}chromeAPIMock.js`;
|
||||||
|
|
||||||
const baseConfig = (params) => ({
|
const baseConfig = (params) => ({
|
||||||
// devtool: 'source-map',
|
// devtool: 'source-map',
|
||||||
mode: 'production',
|
mode: params.mode,
|
||||||
entry: params.input || {
|
entry: params.input || {
|
||||||
background: [mock, `${extpath}background/index`],
|
background: [mock, `${extpath}background/index`],
|
||||||
options: [mock, `${extpath}options/index`],
|
options: [mock, `${extpath}options/index`],
|
||||||
|
|
|
@ -3,6 +3,7 @@ import webpack from 'webpack';
|
||||||
import baseConfig from './base.config';
|
import baseConfig from './base.config';
|
||||||
|
|
||||||
let config = baseConfig({
|
let config = baseConfig({
|
||||||
|
mode: 'development',
|
||||||
inputExtra: {
|
inputExtra: {
|
||||||
page: [path.join(__dirname, '../src/browser/extension/inject/pageScript')],
|
page: [path.join(__dirname, '../src/browser/extension/inject/pageScript')],
|
||||||
},
|
},
|
||||||
|
|
|
@ -2,6 +2,10 @@ import path from 'path';
|
||||||
import baseConfig from './base.config';
|
import baseConfig from './base.config';
|
||||||
|
|
||||||
export default baseConfig({
|
export default baseConfig({
|
||||||
|
mode: 'production',
|
||||||
|
inputExtra: {
|
||||||
|
page: [path.join(__dirname, '../src/browser/extension/inject/pageScript')],
|
||||||
|
},
|
||||||
output: { path: path.join(__dirname, '../build/extension') },
|
output: { path: path.join(__dirname, '../build/extension') },
|
||||||
globals: {
|
globals: {
|
||||||
'process.env': {
|
'process.env': {
|
||||||
|
|
|
@ -2,6 +2,7 @@ import path from 'path';
|
||||||
import baseConfig from './base.config';
|
import baseConfig from './base.config';
|
||||||
|
|
||||||
export default baseConfig({
|
export default baseConfig({
|
||||||
|
mode: 'production',
|
||||||
output: { path: path.join(__dirname, '../build/extension') },
|
output: { path: path.join(__dirname, '../build/extension') },
|
||||||
globals: {
|
globals: {
|
||||||
'process.env': {
|
'process.env': {
|
||||||
|
|
|
@ -2,6 +2,7 @@ import path from 'path';
|
||||||
import baseConfig from './base.config';
|
import baseConfig from './base.config';
|
||||||
|
|
||||||
export default baseConfig({
|
export default baseConfig({
|
||||||
|
mode: 'production',
|
||||||
input: {
|
input: {
|
||||||
page: [path.join(__dirname, '../src/browser/extension/inject/pageScript')],
|
page: [path.join(__dirname, '../src/browser/extension/inject/pageScript')],
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue
Block a user