I noticed that too, to my project i had to add some buttons to toast controller, so i had to extends the toast controller, without --prod it work correctly, but with the --prod simply doesn`t add the required css from the toast,
Node : v6.9.2
OS : macOS Sierra
Xcode : Xcode 8.2.1 Build version 8C1002
ios-sim : 5.0.13
npm : 4.0.5
Re-creating the Issue
ionic start test tabs
ionic serve --prod --release
Issue Description
When running the application with the --prod and --release tags then the default ionic styling is missing from the application which means the layout is incorrect.
Running without --prod --release works correctly
Notes
Downgrading the version of app-scripts to 1.3.12 works correctly.
Issue is also present with the latest version of app-scripts (2.1.3)
With the hope this would produce a minified and obfuscated version of my application capable of running in a browser. I dropped back to using ionic serve when I noticed that the styling was missing when using the --prod --release parameters.
Browser : Chrome 59.0.3071.115
I can confirm I see the same issue on both a Windows 7 and MacOS 10.12.6 OS
Can you run it with missing styles, backup the www somewhere, then run with working styles, and compare the new www to the old folder? Use Winmerge or a similar program.
After your point about --prod --release not being supported in the ionic serve command I retried this with : ionic build browser --prod --release and served via Apache and it works fine !
So seems the issue is only applicable to ionic serve, so whilst it’s odd that ionic serve does something different with this parameters it is now a non issue!
S:\ionic\test2>ionic serve --prod --release
[INFO] Starting app-scripts server: --prod --release --port 8100 --p 8100 --livereload-port 35729 --r 35729 --address
localhost - Ctrl+C to cancel
[14:01:29] watch started …
[14:01:29] build dev started …
[14:01:29] clean started …
[14:01:29] clean finished in 3 ms
[14:01:29] copy started …
[14:01:29] transpile started …
[14:01:32] transpile finished in 3.25 s
[14:01:32] preprocess started …
[14:01:32] deeplinks started …
[14:01:32] deeplinks finished in 12 ms
[14:01:32] preprocess finished in 15 ms
[14:01:32] webpack started …
[14:01:33] copy finished in 3.60 s
[14:01:44] webpack finished in 11.71 s
[14:01:44] sass started …
[14:01:44] sass finished in 202 ms
[14:01:44] postprocess started …
[14:01:44] postprocess finished in 10 ms
[14:01:44] lint started …
[14:01:44] build dev finished in 15.24 s
[14:01:45] watch ready in 15.40 s
[14:01:45] dev server running: http://localhost:8100/
S:\ionic\test2>ionic serve
[INFO] Starting app-scripts server: --port 8100 --p 8100 --livereload-port 35729 --r 35729 --address localhost - Ctrl+C
to cancel
[14:02:36] watch started …
[14:02:36] build dev started …
[14:02:36] clean started …
[14:02:36] clean finished in 10 ms
[14:02:36] copy started …
[14:02:36] transpile started …
[14:02:39] transpile finished in 3.07 s
[14:02:39] preprocess started …
[14:02:39] deeplinks started …
[14:02:39] deeplinks finished in 10 ms
[14:02:39] preprocess finished in 12 ms
[14:02:39] webpack started …
[14:02:39] copy finished in 3.51 s
[14:02:46] webpack finished in 7.31 s
[14:02:46] sass started …
[14:02:48] sass finished in 1.16 s
[14:02:48] postprocess started …
[14:02:48] postprocess finished in 8 ms
[14:02:48] lint started …
[14:02:48] build dev finished in 11.62 s
[14:02:48] watch ready in 11.79 s
[14:02:48] dev server running: http://localhost:8100/