Dillon Kearns
3bee40a7bc
Merge pull request #123 from sparksp/generate-command
...
Generate without full build
2020-08-17 19:41:30 -07:00
Dillon Kearns
646ebc42b2
Set headers to turn off caching in dev server so Safari doesn't load stale data.
2020-08-17 19:37:29 -07:00
Phill Sparks
8b4d92d4ca
Use build --skip-dist instead of generate
2020-07-14 21:57:18 +01:00
Phill Sparks
4da355b17e
Generate without full build
...
Adds `elm-pages generate` command which only builds `gen/Pages.elm`.
Fixes #112
2020-07-14 21:57:18 +01:00
Dillon Kearns
ebd348d3f6
Merge pull request #110 from Y0hy0h/image-dimensions
...
Provide image dimensions
2020-06-16 20:54:51 -07:00
Dillon Kearns
aaaf75e366
Merge pull request #121 from dillonkearns/non-zero-exit-on-error
...
Non zero exit on errors
2020-06-16 08:26:11 -07:00
Dillon Kearns
e734f76576
Make sure webpack exits with non-zero status when there are errors. Fixes #115 .
2020-06-16 08:22:58 -07:00
Johannes Maas
e34c7ca438
Fix static folder destination on Windows
...
On Windows, a file in static/file.txt was put into dist/static/file.txt instead of dist/file.txt.
This was because we cut off everything before the first "/" in the target path string, but Windows separates folders with "\".
Instead, we can use the somewhat hidden context feature from the CopyPlugin to get rid of the static/ prefix. See https://webpack.js.org/plugins/copy-webpack-plugin/#from-is-a-glob
2020-06-12 12:20:22 +02:00
Johannes Maas
0ede0c8a3b
Fix infinite recompilation loop
...
The images were sorted differently in the resulting Pages.elm file, triggering constant recompilations because the files were considered different.
The random order is probably due to the introduced async operations.
2020-05-23 23:04:40 +02:00
Johannes Maas
e4a9c84cf5
Propagate the promise handling
2020-05-17 21:21:55 +02:00
Johannes Maas
b23915eac1
Pass images their dimensions
2020-05-17 21:21:29 +02:00
Johannes Maas
0ea9c78e51
Add dimensions to buildImage
2020-05-17 21:20:03 +02:00
Johannes Maas
ef9108924b
Merge remote-tracking branch 'upstream/master' into image-dimensions
2020-05-17 19:54:21 +02:00
Dillon Kearns
84fd44b922
Address some typescript warnings.
2020-05-17 10:48:52 -07:00
Dillon Kearns
39bf0ca62a
Address some typescript warnings.
2020-05-17 10:23:36 -07:00
Johannes Maas
7be88793fe
Refactor generation code
2020-05-17 18:34:53 +02:00
Dillon Kearns
1684c45ca3
Use async plugin for generating files.
2020-05-17 09:12:06 -07:00
Johannes Maas
6173268185
Factor out common funcs in image asset processing
2020-05-17 15:36:19 +02:00
Dillon Kearns
7d340065bb
Make sure to fail on build errors for elm-pages build.
2020-05-11 16:29:40 -07:00
Dillon Kearns
f481a6bf77
Merge pull request #90 from Y0hy0h/terser
...
Replace Google Closure minifier with Terser
2020-05-11 16:09:34 -07:00
Dillon Kearns
9a8698d70b
Add some more terser options.
2020-05-11 16:03:55 -07:00
Dillon Kearns
8f7bbc80b4
Restore elm optimizations for terser.
2020-05-11 15:22:28 -07:00
Dillon Kearns
29719cc428
Merge branch 'master' into pr/90
2020-05-11 12:05:38 -07:00
Dillon Kearns
3a61933d81
Merge branch 'master' into phantom-builder
2020-05-11 10:40:58 -07:00
Dillon Kearns
df5b36d7fb
Render loading indicator off to the side of the elm debugger panel.
2020-05-09 20:33:32 -07:00
Dillon Kearns
87d810790f
Move more of loading indicator style into Elm.
2020-05-08 07:13:16 -07:00
Dillon Kearns
e62d61fbab
Generate manifest config for initial run.
2020-05-06 19:00:11 -07:00
Dillon Kearns
414f7ab1f8
Rename parameter.
2020-05-05 07:21:04 -07:00
Dillon Kearns
8a35d49d1c
Remove unused arguments.
2020-05-05 07:19:16 -07:00
Dillon Kearns
d79fc80233
Remove unused arguments.
2020-05-05 07:14:24 -07:00
Dillon Kearns
ed2d671586
Change hook based on dev/prod mode.
2020-05-05 06:58:58 -07:00
Dillon Kearns
2e8e9754d1
Remove unused code.
2020-05-04 20:46:14 -07:00
Dillon Kearns
d676064acf
Remove some unused code.
2020-05-04 14:00:53 -07:00
Dillon Kearns
03315da320
Change error message string.
2020-05-04 14:00:33 -07:00
Dillon Kearns
a210fcfd35
Remove unused require.
2020-05-03 20:15:52 -07:00
Dillon Kearns
73c4a2dec2
Make sure gen directory exists.
2020-05-03 17:38:34 -07:00
Dillon Kearns
8171f205fe
Get build process working with new webpack setup.
2020-05-03 17:31:19 -07:00
Dillon Kearns
4c43d02f32
Remove unused code.
2020-05-03 15:57:24 -07:00
Dillon Kearns
09402d13c2
Remove unused code.
2020-05-03 15:48:02 -07:00
Dillon Kearns
0d7620935f
Add a hack to make sure metadata changes come through in HMR.
2020-05-03 11:46:11 -07:00
Dillon Kearns
d2968fff89
Show error overlay for metadata parsing errors.
2020-05-03 07:10:27 -07:00
Dillon Kearns
cb0f4cbed4
Generate Pages.elm module from a Webpack plugin so it hooks into the lifecycle more smoothly.
2020-05-02 17:22:53 -07:00
Dillon Kearns
701e27953e
Get dev server running when there is an error on initial run.
2020-04-22 18:15:37 -07:00
Dillon Kearns
003f35be3a
Pull up require statement.
2020-04-22 18:03:37 -07:00
Dillon Kearns
171eefbb05
Remove unused argument.
2020-04-22 18:00:46 -07:00
Dillon Kearns
e31f6d3977
Update ANSI color scheme.
2020-04-20 17:33:08 -07:00
Dillon Kearns
20339f7256
Display build errors in overlay.
2020-04-20 17:12:16 -07:00
Dillon Kearns
4aae309665
Add wiring for setting up HMR plugin with custom styling.
2020-04-20 15:12:20 -07:00
Dillon Kearns
b2e66174e9
Reorder constant declaration.
2020-04-20 15:06:58 -07:00
Dillon Kearns
53b8b014fe
Don't exit dev server process on CLI phase error, just print error for now. Eventually want to display the error like a compiler error in the browser window Webpack banner.
2020-04-19 20:03:00 -07:00