joelondon ca4c8a398b | 4 years ago | |
---|---|---|
dist | 4 years ago | |
src | 4 years ago | |
.browserslistrc | 5 years ago | |
.gitignore | 5 years ago | |
README.md | 4 years ago | |
package.json | 5 years ago | |
server.js | 5 years ago | |
webpack.config.js | 4 years ago |
this project is to show services available for eu londoners interested in settled status during brexit
google spreadsheet share
https://drive.google.com/drive/folders/14ZVhTJYJaohQOqU2rexvTN_s0NUP49KZ?usp=sharing
webpack can possibly do this during the npm run build but currently the working deployment procedure is to perform the two steps below before running npm run build
and then unperforming them to return to have npm run start:dev
working
(i prefer gnu sed to freebsd) brew install gnu-sed
gsed -i 's/src\///g' src/index.js
gsed -i 's/\.\/src\//\.\//g' src/index.html
also need to uncomment this bit of webpack config
/*
module.exports = [
merge(config[0], {
plugins: [
new copyPlugin([
{ from: 'src/json', to: 'json' },
{ from: 'src/img', to: 'img' },
{ from: 'src/css', to: 'css' },
]),
],
}),
config[1],
]
*/
gsed -i "s/'\.\//'.\/src\//g" src/index.js
gsed -i 's/"\.\//".\/src\//g' src/index.html
and also comment out
module.exports = [
merge(config[0], {
plugins: [
new copyPlugin([
{ from: 'src/json', to: 'json' },
{ from: 'src/img', to: 'img' },
{ from: 'src/css', to: 'css' },
]),
],
}),
config[1],
]