Skip to content
Snippets Groups Projects
Commit a181d0e3 authored by Hugo SUBTIL's avatar Hugo SUBTIL
Browse files

fix: lint

parent 44e8394d
No related branches found
No related tags found
No related merge requests found
Pipeline #28155 passed
...@@ -12,9 +12,9 @@ const readManifest = () => ...@@ -12,9 +12,9 @@ const readManifest = () =>
const svgo = new SvgoInstance({ const svgo = new SvgoInstance({
plugins: [ plugins: [
{ {
inlineStyles: { onlyMatchedOnce: false } inlineStyles: { onlyMatchedOnce: false },
} },
] ],
}) })
let iconName let iconName
...@@ -33,7 +33,7 @@ module.exports = { ...@@ -33,7 +33,7 @@ module.exports = {
mode: 'none', mode: 'none',
output: { output: {
path: path.join(__dirname, 'build'), path: path.join(__dirname, 'build'),
filename: 'index.js' filename: 'index.js',
}, },
plugins: [ plugins: [
new CopyPlugin({ new CopyPlugin({
...@@ -43,20 +43,20 @@ module.exports = { ...@@ -43,20 +43,20 @@ module.exports = {
{ from: 'README.md' }, { from: 'README.md' },
{ from: 'assets', transform: optimizeSVGIcon }, { from: 'assets', transform: optimizeSVGIcon },
{ from: '.travis.yml' }, { from: '.travis.yml' },
{ from: 'LICENSE' } { from: 'LICENSE' },
] ],
}), }),
new webpack.DefinePlugin({ new webpack.DefinePlugin({
__WEBPACK_PROVIDED_MANIFEST__: JSON.stringify(readManifest()) __WEBPACK_PROVIDED_MANIFEST__: JSON.stringify(readManifest()),
}) }),
], ],
module: { module: {
// to ignore the warnings like : // to ignore the warnings like :
// WARNING in ../libs/node_modules/bindings/bindings.js 76:22-40 // WARNING in ../libs/node_modules/bindings/bindings.js 76:22-40
// Critical dependency: the request of a dependency is an expression // Critical dependency: the request of a dependency is an expression
// Since we cannot change this dependency. I think it won't hide more important messages // Since we cannot change this dependency. I think it won't hide more important messages
exprContextCritical: false exprContextCritical: false,
} },
} }
function optimizeSVGIcon(buffer, path) { function optimizeSVGIcon(buffer, path) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment