Skip to content

Commit

Permalink
Put in workarounds for the webpack for the html manager test suite.
Browse files Browse the repository at this point in the history
  • Loading branch information
jasongrout committed Jun 23, 2017
1 parent 55f86af commit 462a8ff
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions jupyter-widgets-htmlmanager/test/webpack.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,22 @@ module.exports = {
{ test: /\.json$/, loader: 'json-loader' },
],
},
postcss: function () {
postcss: () => {
return [
require('postcss-import'),
require('postcss-cssnext')
postcss.plugin('delete-tilde', () => {
return function (css) {
css.walkAtRules('import', (rule) => {
rule.params = rule.params.replace('~', '');
});
};
}),
postcss.plugin('prepend', () => {
return (css) => {
css.prepend(`@import '@jupyter-widgets/controls/css/labvariables.css';`)
}
}),
require('postcss-import')(),
require('postcss-cssnext')()
];
}
}

0 comments on commit 462a8ff

Please sign in to comment.