-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
1 parent
d207890
commit c3b4567
Showing
6 changed files
with
48 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,22 @@ | ||
const path = require('path'); | ||
const CopyWebpackPlugin = require('copy-webpack-plugin'); | ||
|
||
module.exports = { | ||
webpack: { | ||
configure: (webpackConfig, { env, paths }) => { | ||
|
||
const copyWebPackPlugin = new CopyWebpackPlugin({ | ||
patterns: [ | ||
// Copy icon to build folder | ||
{ from: path.resolve(__dirname, 'src/assets/icon.*'), to: path.resolve(__dirname, 'build/[name][ext]') }, | ||
// Copy background to build folder | ||
{ from: path.resolve(__dirname, 'src/assets/background.*'), to: path.resolve(__dirname, 'build/[name][ext]') } | ||
], | ||
}); | ||
|
||
webpackConfig.plugins = [...webpackConfig.plugins, copyWebPackPlugin]; | ||
|
||
return webpackConfig; | ||
} | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"extends": null, | ||
"files": ["build/**/*"], | ||
"directories": { | ||
"buildResources": "assets" | ||
}, | ||
"extraResources": [ | ||
{ | ||
"from": "src/assets", | ||
"to": "assets", | ||
"filter": ["**/*"] | ||
} | ||
], | ||
"publish": [ | ||
{ | ||
"provider": "github", | ||
"owner": "nbentoneves", | ||
"repo": "hi-pr" | ||
} | ||
], | ||
"mac": { | ||
"icon": "build/icon.png", | ||
"publish": ["github"] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.