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

Fix build warnings #90

Closed
danitome24 opened this issue Mar 15, 2016 · 4 comments · Fixed by #110
Closed

Fix build warnings #90

danitome24 opened this issue Mar 15, 2016 · 4 comments · Fixed by #110
Labels

Comments

@danitome24
Copy link

Hi all!

I'm using this plugin to my ZF2 web application and I have one question. When I execute npm run build it shows to me some messages advising about a deprecated function. The message is the following:

Container#eachAtRule is deprecated. Use Container#walkAtRules instead.
Container#eachRule is deprecated. Use Container#walkRules instead.
Container#eachDecl is deprecated. Use Container#walkDecls instead.
Node#style() is deprecated. Use Node#raw()
Node#_value was deprecated. Use Node#raws.value
Hash: 02954ab3b14e71c533a7
Version: webpack 1.12.2
Time: 4923ms
         Asset    Size  Chunks             Chunk Names
tota11y.min.js  257 kB       0  [emitted]  app
    + 52 hidden modules

WARNING in tota11y.min.js from UglifyJs
Condition always true [./~/jquery/dist/jquery.js:9170,0]
Side effects in initialization of unused variable sourceMap [./~/style-loader/addStyles.js:185,0]
Side effects in initialization of unused variable media [./~/style-loader/addStyles.js:203,0]
Condition always false [./~/style-loader/addStyles.js:23,0]
Dropping unreachable code [./~/style-loader/addStyles.js:24,0]
Condition always false [./~/style-loader!./~/css-loader!./~/postcss-loader!./~/autoprefixer-loader?{browsers:['> 1%']}!./~/less-loader!./less/tota11y.less:9,0]
Dropping unreachable code [./~/style-loader!./~/css-loader!./~/postcss-loader!./~/autoprefixer-loader?{browsers:['> 1%']}!./~/less-loader!./less/tota11y.less:11,0]
Side effects in initialization of unused variable update [./~/style-loader!./~/css-loader!./~/postcss-loader!./~/autoprefixer-loader?{browsers:['> 1%']}!./~/less-loader!./less/tota11y.less:7,0]
Condition always false [./~/style-loader!./~/css-loader!./~/postcss-loader!./~/autoprefixer-loader?{browsers:['> 1%']}!./~/less-loader!./plugins/a11y-text-wand/style.less:9,0]
Dropping unreachable code [./~/style-loader!./~/css-loader!./~/postcss-loader!./~/autoprefixer-loader?{browsers:['> 1%']}!./~/less-loader!./plugins/a11y-text-wand/style.less:11,0]
Side effects in initialization of unused variable update [./~/style-loader!./~/css-loader!./~/postcss-loader!./~/autoprefixer-loader?{browsers:['> 1%']}!./~/less-loader!./plugins/a11y-text-wand/style.less:7,0]
Condition always false [./~/style-loader!./~/css-loader!./~/postcss-loader!./~/autoprefixer-loader?{browsers:['> 1%']}!./~/less-loader!./plugins/contrast/style.less:9,0]
Dropping unreachable code [./~/style-loader!./~/css-loader!./~/postcss-loader!./~/autoprefixer-loader?{browsers:['> 1%']}!./~/less-loader!./plugins/contrast/style.less:11,0]
Side effects in initialization of unused variable update [./~/style-loader!./~/css-loader!./~/postcss-loader!./~/autoprefixer-loader?{browsers:['> 1%']}!./~/less-loader!./plugins/contrast/style.less:7,0]
Condition always false [./~/style-loader!./~/css-loader!./~/postcss-loader!./~/autoprefixer-loader?{browsers:['> 1%']}!./~/less-loader!./plugins/headings/style.less:9,0]
Dropping unreachable code [./~/style-loader!./~/css-loader!./~/postcss-loader!./~/autoprefixer-loader?{browsers:['> 1%']}!./~/less-loader!./plugins/headings/style.less:11,0]
Side effects in initialization of unused variable update [./~/style-loader!./~/css-loader!./~/postcss-loader!./~/autoprefixer-loader?{browsers:['> 1%']}!./~/less-loader!./plugins/headings/style.less:7,0]
Condition always false [./~/style-loader!./~/css-loader!./~/postcss-loader!./~/autoprefixer-loader?{browsers:['> 1%']}!./~/less-loader!./plugins/shared/annotate/style.less:9,0]
Dropping unreachable code [./~/style-loader!./~/css-loader!./~/postcss-loader!./~/autoprefixer-loader?{browsers:['> 1%']}!./~/less-loader!./plugins/shared/annotate/style.less:11,0]
Side effects in initialization of unused variable update [./~/style-loader!./~/css-loader!./~/postcss-loader!./~/autoprefixer-loader?{browsers:['> 1%']}!./~/less-loader!./plugins/shared/annotate/style.less:7,0]
Condition always false [./~/style-loader!./~/css-loader!./~/postcss-loader!./~/autoprefixer-loader?{browsers:['> 1%']}!./~/less-loader!./plugins/shared/info-panel/style.less:9,0]
Dropping unreachable code [./~/style-loader!./~/css-loader!./~/postcss-loader!./~/autoprefixer-loader?{browsers:['> 1%']}!./~/less-loader!./plugins/shared/info-panel/style.less:11,0]
Side effects in initialization of unused variable update [./~/style-loader!./~/css-loader!./~/postcss-loader!./~/autoprefixer-loader?{browsers:['> 1%']}!./~/less-loader!./plugins/shared/info-panel/style.less:7,0]

> tota11y@0.0.10 dev /var/www/dtome/guido/vendor/khan/tota11y
> webpack -d --devtool hidden --output-file=tota11y.js

output.file will be deprecated: Use 'output.filename' instead
Container#eachAtRule is deprecated. Use Container#walkAtRules instead.
Container#eachRule is deprecated. Use Container#walkRules instead.
Container#eachDecl is deprecated. Use Container#walkDecls instead.
Node#style() is deprecated. Use Node#raw()
Node#before is deprecated. Use Node#raws.before
Node#_value was deprecated. Use Node#raws.value
Hash: b8fcf00dab043270ca34
Version: webpack 1.12.2

There's something wrong with the plugin or the problem is in other way?

Thanks!

@jdan
Copy link
Owner

jdan commented Mar 15, 2016

Hey @danitome24,

Nothing to worry too much about here, everyone should see these. We can eliminate the "is deprecated" warnings but fixing our PostCSS plugin. The UglifyJs warnings I have not looked into too much.

@jdan
Copy link
Owner

jdan commented Mar 15, 2016

Thank you very much for pointing this out!

@danitome24
Copy link
Author

Thank you for this quickly response. I'll close the issue due to your response.

@jdan
Copy link
Owner

jdan commented Mar 16, 2016

No worries :)

I'll keep it open if that's okay with you just so it's clear that we should fix these!

@jdan jdan reopened this Mar 16, 2016
@jdan jdan changed the title Deprecated message Fix build warnings Mar 16, 2016
@jdan jdan added the tooling label Mar 16, 2016
jdan added a commit to mveritym/tota11y that referenced this issue Feb 28, 2017
jdan pushed a commit to mveritym/tota11y that referenced this issue Feb 28, 2017
@jdan jdan closed this as completed in #110 Feb 28, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants