-
Notifications
You must be signed in to change notification settings - Fork 38
Open
Description
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
Metadata
Metadata
Assignees
Labels
No labels