-
-
Notifications
You must be signed in to change notification settings - Fork 167
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Live reload on .graphql files #115
Comments
Perhaps in addition to passing node args, we could also pass nodemon args here and use Thoughts @jaredpalmer? |
I had luck using the graphql-import-loader and the below backpack config: module.exports = {
webpack: (config, options, webpack) => {
config.module.rules.push({
exclude: /node_modules/,
test: /\.graphql$/,
use: [{ loader: 'graphql-import-loader' }],
})
return config
},
} |
I'd love to have this! |
@ctrlplusb 's solution works but it requires me to make changes in js file ( index.js ) to get the updates in the playground and also I've to manually refresh the playground so yeah "live-reload" doesn't work :| |
@5achinJani you can add this in the const ExtraWatchWebpackPlugin = require('extra-watch-webpack-plugin')
module.exports = {
webpack: (config, options, webpack) => {
config.plugins.push(
new ExtraWatchWebpackPlugin({
files: ['<path-to-graphql-files>'],
})
)
return config
},
} |
Thanks @ryands17 that works like charm. |
Is it possible right now to config file extensions to watch and reload? for graphql files i m using graphql-import.
The text was updated successfully, but these errors were encountered: