R
R
Roman Romanovich2016-08-26 12:37:33
JavaScript
Roman Romanovich, 2016-08-26 12:37:33

Fatal error while building a project?

Hello!
There was a problem when building the project, the grunt builder, the grunt-uncss plugin is used to exclude unnecessary code in the sources
, I give an example of a task in which a critical error occurs

'member': {
                options: {
                    stylesheets: ['/css/dev/all.css'],
                    timeout: 1000,
                    htmlroot: 'lite',
                    ignore: [
                        // Выбираем все стили где в начале .class
                        /#ctrlcopy+/,
                        /#powerTip+/,
                        /placeholder+/,
                        /.user-widget-block_+/,
                        /.jcrop+/,
                        /.mfp+/,
                        /.visible+/,
                        /.select2+/,
                        /.header-menu_li+/,
                        /.header-banner+/,
                        /.header_+/,
                        /.user-widget-block+/,
                        /.user-widget-block_+/,
                        /.b-section+/,
                        /.ava+/,
                        /.ico-club+/,
                        /.ico-family+/,
                        /.flag+/,
                        /.fast-articles3+/,
                        /input+/,
                        /.body+/,
                        /.bnr+/,
                        /.hidden+/,
                        /.box+/,
                        /.answer+/,
                        // Для страниц собранных разделов
                        /.bx-wrapper+/,
                        /.ico-social-hold+/,
                        /.userSection_btn+/
                    ],
                },
                src: [
                    'lite/html/page/blog/**/*.html', // статьи в ленте
                    'lite/html/page/comments/**/*.html',
                    'lite/html/page/sign/**/*.html',
                    'lite/html/page/member/**/*.html',
                    'lite/html/page/photo-window/**/*.html',
                    '!lite/html/page/**/*-user.html', // стариницы зареганого пользователя
                    '!lite/html/page/comments/comments-page.html',
                    'lite/html/page/contest/contest-commentator/widget-profile-user.html', // Нужен только пока идет конкурс комментаторов
                    'lite/html/page/services/consult/consult-widget-open.html', // Нужен только пока идет консультация
                    'lite/html/page/pediator/**/*.html'
                ],
                dest: 'lite/css/min/member.css'
            },

and here is the critical error
Fatal Windows exception, code 0xc0000005.
PhantomJS has crashed. Please read the bug reporting guide at
<http://phantomjs.org/bug-reporting.html> and file a bug report.
Fatal error: Cannot communicate with PhantomJS process: PhantomJS exited unexpectedly: write EOF

The OS is Windows 10, there were no problems before, can anyone come across a similar one?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nikita Baev, 2016-08-26
@drugoi

The problem with PhantomJS, there are suspicions that it needs to be rebuilt from source.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question