Closed rclement closed 5 years ago
thanks! also closes #60
@medfreeman here are the latest enhancements to this PR:
package.json
extract-text-webpack-plugin
(deprecated) with mini-css-extract-plugin
for webpack v4 compatibilityFeel free to comment on this! Thanks!
Hi ! Sorry but it seems my circleci settings do not build forked pull requests. Thanks for the work, but the commits aren't enough since they do not pass tests at all. I pretty much finished the work while keeping your commit in the rclement-support-nuxt-2.0 branch.
I used extract-css-chunks-webpack-plugin
, as nuxt 2.0 does.
I'm testing the example atm, and will update test snapshots then merge to master. I'll also keep the previous code in @nuxt1 branch.
Oh, it seems i need webpack bar, and a way to register the admin
compiler in nuxt compilers to streamline the output also.
closing in favor of #111
This PR aims at fixing the compatibility with Nuxt.js >= 2.0.0:
extract-text-webpack-plugin
,friendly-errors-webpack-plugin
@nuxt/common
r()
andurlJoin()
fromnuxt
using the@nuxt/common
packagewebpack
configmodule.loaders
withmodule.rules
CHUNK_FILENAME
as a string, depending on Nuxt build configurationThis fixes issues #104 and #105. This can be tested using the
@rmnclmnt/nuxt-netlify-cms
package.