using webpack publish application for both web and electron
up vote
-3
down vote
favorite
Objective:
Using webpack ver 4, develop/distribute an application in
- web as target (already done)
Electron as target (TO DO)- Application will have different functionality by detecting its target i.e Electron dist/dev may have more functions that may not be present in web dist/dev (already done) see here
What I need:
I am having problem with electron setup for same code , Help is nedded here.
Can anyone suggest how i can add dev:electron
and build:electron
in package.json
Update:
I see there is option https://webpack.js.org/configuration/target/
still trying to figure out how to set it up
Github Repo :
I have created a repo @ https://github.com/mafar/webpack-web-electron
which has working example which works for web target
package.json:
"scripts": {
"dev:web": "cross-env NODE_ENV=dev webpack-serve --open --config webpack.config.js",
"build:web": "webpack -p --progress --mode production --config webpack.config.js"
},
javascript webpack electron
add a comment |
up vote
-3
down vote
favorite
Objective:
Using webpack ver 4, develop/distribute an application in
- web as target (already done)
Electron as target (TO DO)- Application will have different functionality by detecting its target i.e Electron dist/dev may have more functions that may not be present in web dist/dev (already done) see here
What I need:
I am having problem with electron setup for same code , Help is nedded here.
Can anyone suggest how i can add dev:electron
and build:electron
in package.json
Update:
I see there is option https://webpack.js.org/configuration/target/
still trying to figure out how to set it up
Github Repo :
I have created a repo @ https://github.com/mafar/webpack-web-electron
which has working example which works for web target
package.json:
"scripts": {
"dev:web": "cross-env NODE_ENV=dev webpack-serve --open --config webpack.config.js",
"build:web": "webpack -p --progress --mode production --config webpack.config.js"
},
javascript webpack electron
add a comment |
up vote
-3
down vote
favorite
up vote
-3
down vote
favorite
Objective:
Using webpack ver 4, develop/distribute an application in
- web as target (already done)
Electron as target (TO DO)- Application will have different functionality by detecting its target i.e Electron dist/dev may have more functions that may not be present in web dist/dev (already done) see here
What I need:
I am having problem with electron setup for same code , Help is nedded here.
Can anyone suggest how i can add dev:electron
and build:electron
in package.json
Update:
I see there is option https://webpack.js.org/configuration/target/
still trying to figure out how to set it up
Github Repo :
I have created a repo @ https://github.com/mafar/webpack-web-electron
which has working example which works for web target
package.json:
"scripts": {
"dev:web": "cross-env NODE_ENV=dev webpack-serve --open --config webpack.config.js",
"build:web": "webpack -p --progress --mode production --config webpack.config.js"
},
javascript webpack electron
Objective:
Using webpack ver 4, develop/distribute an application in
- web as target (already done)
Electron as target (TO DO)- Application will have different functionality by detecting its target i.e Electron dist/dev may have more functions that may not be present in web dist/dev (already done) see here
What I need:
I am having problem with electron setup for same code , Help is nedded here.
Can anyone suggest how i can add dev:electron
and build:electron
in package.json
Update:
I see there is option https://webpack.js.org/configuration/target/
still trying to figure out how to set it up
Github Repo :
I have created a repo @ https://github.com/mafar/webpack-web-electron
which has working example which works for web target
package.json:
"scripts": {
"dev:web": "cross-env NODE_ENV=dev webpack-serve --open --config webpack.config.js",
"build:web": "webpack -p --progress --mode production --config webpack.config.js"
},
javascript webpack electron
javascript webpack electron
edited 18 hours ago
asked 19 hours ago
django
1,08842353
1,08842353
add a comment |
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53349097%2fusing-webpack-publish-application-for-both-web-and-electron%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown