Skip to content
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

Failed to load resource: net::ERR_INCOMPLETE_CHUNKED_ENCODING #142

Open
sethstha opened this issue Jan 31, 2017 · 0 comments
Open

Failed to load resource: net::ERR_INCOMPLETE_CHUNKED_ENCODING #142

sethstha opened this issue Jan 31, 2017 · 0 comments

Comments

@sethstha
Copy link

Hello there,
Recently i am experiencing issue when files is being saved. BrowserSync is not reloading the page instead i am getting error 'Failed to load resource: net::ERR_INCOMPLETE_CHUNKED_ENCODING'. I have searched and fount nothing.

Here is my Gruntfile configuration

module.exports = function( grunt ){
	'use strict';

	grunt.initConfig({

		// Setting folder templates.
		dirs: {
			js: 'js',
			css: 'assets/css',
			scss: 'assets/sass'
		},

		// Compile all .scss files.
		sass: {
			options: {
				sourceMap: false,
				outputStyle: 'expanded',
				indentType: 'tab',
				indentWidth: 1
			},
			compile: {
				files: [{
					expand: true,
					cwd: '<%= dirs.scss %>/',
					src: ['*.scss'],
					dest: '',
					ext: '.css'
				}]
			}
		},

		// PostCSS
		postcss: {
			options: {
				map: false,
				processors: [
					require( 'pixrem' ),
					require( 'autoprefixer' )({ browsers: ['last 4 versions', 'ie 8', 'ie 7'] })
				]
			},

			compile: {
				files: [{
					expand: true,
					cwd: '',
					src: ['*.css'],
					dest: '',
					ext: '.css'
				}]
			}
		},


		// Watch changes for assets.
		watch: {
			css: {
				files: [
					'<%= dirs.scss %>/*.scss',
					'<%= dirs.scss %>/**/*.scss'
				],
				tasks: ['sass']
			}
		},

		browserSync: {
            dev: {
                bsFiles: {
                    src : [
                        '*.css',
                        '*.html',
                        '*.php',
                        '**/*.php',
                        'assets/js/*.js'
                    ]
                },
                options: {
                    watchTask: true,
                    proxy: 'localhost/suffice'
                }
            }
        }
	});

	// Load NPM tasks to be used here
	grunt.loadNpmTasks( 'grunt-sass' );
	grunt.loadNpmTasks( 'grunt-postcss' );
	grunt.loadNpmTasks( 'grunt-contrib-watch' );
	grunt.loadNpmTasks( 'grunt-browser-sync' );

	// Register tasks
	grunt.registerTask( 'css', [
		'sass',
		'postcss'
	]);

	grunt.registerTask('default', ['browserSync', 'watch']);
	
};

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant