diff --git a/webpack.config.js b/webpack.config.js index cfcd348..dfc7d6b 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -23,10 +23,18 @@ const config = { filename: '[name].js', }, resolve: { - extensions: ['.js', '.vue'], + // maybe we'll move to TS some day, but today is not the day + extensions: [ + // '.ts', '.tsx', + '.js', '.vue' + ], }, module: { rules: [ + // { + // test: /\.tsx?$/, + // loader: 'ts-loader', + // }, { test: /\.vue$/, loaders: 'vue-loader', @@ -77,6 +85,13 @@ const config = { new CopyWebpackPlugin([ { from: 'res', to: 'res', ignore: ['css', 'css/**']}, { from: 'ext', to: 'ext', ignore: ['conf/*', 'lib/**']}, + + // This is a hack to get bootstrap icons svg file in /res/icons + { from: '../node_modules/bootstrap-icons/bootstrap-icons.svg', to: 'res/icons/bootstrap-icons.svg'}, + + // This is extension icon, as used on extension lists and/or extension's action button + // This folder does not contain any GUI icons — these are in /res/icons. + // (TODO: check if this copy is even necessary — /icons has same content as /res/icons) { from: 'icons', to: 'icons', ignore: ['icon.xcf'] }, { from: 'popup/popup.html', to: 'popup/popup.html', transform: transformHtml }, { from: 'options/options.html', to: 'options/options.html', transform: transformHtml },