Commit Graph

63 Commits

Author SHA1 Message Date
Pooya Parsa
a70fc016e4 Refactor generateRoutesAndFiles 2017-05-18 13:15:15 +04:30
Pooya Parsa
51618bef29 Allow override anything using a file with same name in srcDir/app 2017-05-16 02:17:58 +04:30
Pooya Parsa
c2befae5db Refactor with async/await instead of yield 2017-05-16 01:21:27 +04:30
Pooya Parsa
5d23dfc49e watch for custom provided templates on edit event 2017-05-12 12:57:06 +04:30
Pooya Parsa
12727d1165 [modules] Watch for template changes
`build.watch` option was added
2017-05-12 12:45:37 +04:30
Pooya Parsa
2c37811032 [modules] Add extendRoutes 2017-05-12 12:27:24 +04:30
Pooya Parsa
7835e3611d correct templateVars usage 2017-05-12 00:00:22 +04:30
Pooya Parsa
4869770570 remove unneeded renderPlugins calls 2017-05-11 23:55:45 +04:30
Pooya Parsa
336ebd4959 templatesFiles ~> templates 2017-05-11 23:17:53 +04:30
Pooya Parsa
4800a9e8fd build.templatesFiles
This feature adds advanced plugin and template support to modules
2017-05-11 22:41:00 +04:30
Sebastien Chopin
e148e4b93a Add extractCSS option 2017-05-05 17:53:21 +02:00
Sebastien Chopin
6178527177 Improve logs 2017-05-05 16:47:50 +02:00
Pooya Parsa
affbc9c81f fixClientManifest no needed as of vue 2.3.1 2017-05-02 14:31:15 +04:30
Evan You
74652e3974 make use of runInNewContext: false 2017-05-02 13:33:09 +04:30
Pooya Parsa
6ee5d958a7 cleanups 2017-04-30 17:24:14 +04:30
Pooya Parsa
2e75f22a08 add options.ssr
This allows setting custom vue renderer options. including:
- shouldPreload(file, type)
- runInNewContext
- directives

https://ssr.vuejs.org/en/api.html#renderer-options
2017-04-30 17:10:04 +04:30
Pooya Parsa
87172100c7 [vue-loader] allow using builtin extractCSS functionality
This option is disabled by default and won't affect exiting users.
However users can easily enable this option using `nuxt.build.extractCSS`

Implementation is according to:
- https://github.com/vuejs/vue-loader/tree/master/docs/en/configurations
- https://ssr.vuejs.org/en/css.html
- https://github.com/vuejs/vue-hackernews-2.0/tree/master/build
2017-04-30 16:28:25 +04:30
Pooya Parsa
56c39bea88 fix tests 2017-04-30 02:39:40 +04:30
Pooya Parsa
750276b3f6 refactor client watch
Fixes duplicate READY message
2017-04-27 21:14:31 +04:30
Pooya Parsa
ac151a41f0 Basic vue-server-renderer/client-plugin integration 2017-04-27 15:50:43 +04:30
Sébastien Chopin
ec8291ea4c Fix lint style 2017-04-15 13:19:41 +02:00
Sebastien Chopin
b11a4d761b Add injectAs to work with external plugins 2017-04-10 18:44:08 +02:00
Sébastien Chopin
617999a60a Add manifest 2017-03-26 00:52:39 +01:00
Sébastien Chopin
3b635323a4 Add layout in __NUXT__ 2017-03-25 18:59:58 +01:00
Sébastien Chopin
1cefff8194 Add watchers option and url after build 2017-03-25 15:16:07 +01:00
Sébastien Chopin
c4962f09a9 Improve chokidar watch on middleware and store 2017-03-25 05:06:12 +01:00
Sébastien Chopin
7a34763277 Fix webpack building loop 2017-03-25 03:17:26 +01:00
Sébastien Chopin
4431dfa368 revert to no-cdn publicPath 2017-03-24 18:54:54 +01:00
Sébastien Chopin
3f4ea1064d Remove PostCompilePlugin 2017-03-24 16:51:16 +01:00
Sébastien Chopin
d4db5792a4 Improve webpack config
- Remove filenames.css
- Add FriendlyErrorsWebpackPlugin()
- Add sourceMaps for UglifyJS
- Minify CSS for server-rendered pages
- Add css-loader for imports
2017-03-24 01:28:04 +01:00
Sébastien Chopin
64f83b71c3 Vue 2.2 and styles included 2017-03-22 15:47:34 +01:00
Sébastien Chopin
1cd5c0d68b Merge branch 'master' into 0.10.0
# Conflicts:
#	lib/generate.js
#	lib/utils.js
2017-03-20 17:53:39 +01:00
Sébastien Chopin
a81862e77f Upgrade dependencies & lint 2017-03-20 17:52:35 +01:00
Pierre RAMBAUD
c99571e78e Typo fix, const must be renamed clientCompiler 2017-03-20 12:11:20 +01:00
Sébastien Chopin
0a595bd1c3 Merge remote-tracking branch 'origin/0.10.0' into 0.10.0
# Conflicts:
#	lib/generate.js
#	lib/utils.js
2017-03-16 18:54:37 +01:00
Sébastien Chopin
e8056f67eb Fix url starting with double slash 2017-03-16 18:52:38 +01:00
Alexandre Chopin
cd16c2f6d2 change generate.routeParams to generate.routes 2017-03-06 20:00:26 +01:00
Sébastien Chopin
8253f5e75b Add plugin ssr option & rename process.browser 2017-03-01 17:54:44 +01:00
Sébastien Chopin
6773c98d28 Remove build logs in dev 2017-02-28 17:32:12 +01:00
Alexandre Chopin
fd966485ee extendRoutes add resolve func as param for window 2017-02-23 11:02:15 +01:00
Sébastien Chopin
591ef50a06 Fix template not built 2017-02-21 18:22:57 +00:00
Sébastien Chopin
10c4b1550f Use HTML template + optimise cache control + gzip 2017-02-21 17:11:41 +00:00
Alexandre Chopin
f5300e4e67 fix extendRoutes for generate 2017-02-21 13:01:25 +01:00
Sébastien Chopin
7b3c62739c Remove conditional nuxtStatic middleware 2017-02-21 11:31:47 +00:00
Sébastien Chopin
9a2767ac90 Layout on afterEach 2017-02-20 22:11:34 +00:00
Sébastien Chopin
7d630bf5d9 Remove extra line 2017-02-20 18:59:15 +01:00
Sébastien Chopin
f5a6cf0569 Merge branch 'master' into 0.9.10
# Conflicts:
#	package.json
2017-02-18 10:57:12 +01:00
Sébastien Chopin
5b22564b10 Merge branch 'master' into 0.9.10 2017-02-18 10:55:36 +01:00
cj
721d2d63fa cleaner build/error outputs for terminal 2017-02-17 11:58:48 -06:00
cj
88dbe00b9e add options to build 2017-02-17 03:24:30 -06:00