From be006029cbb5c7637073d01067d1232160982e16 Mon Sep 17 00:00:00 2001 From: HerrHase Date: Mon, 4 Nov 2024 21:56:46 +0100 Subject: [PATCH] adding small bugfix for import --- index.js | 14 ++++---- package.json | 2 +- webpack.3.mix.js | 86 ------------------------------------------------ 3 files changed, 9 insertions(+), 93 deletions(-) delete mode 100644 webpack.3.mix.js diff --git a/index.js b/index.js index 1e40a9d..948e5fb 100644 --- a/index.js +++ b/index.js @@ -1,9 +1,11 @@ -import SidebarFormHeader from './src/sidebarFormHeader.riot' -import SidebarFormFooter from './src/sidebarFormFooter.riot' -import SidebarFormMixin from './src/sidebarFormMixin.js' +import sidebarFormHeader from './src/sidebarFormHeader.riot' +import sidebarFormFooter from './src/sidebarFormFooter.riot' +import sidebarFormMixin from './src/sidebarFormMixin.js' +import sidebarFormStore from './src/sidebarFormStore.js' export { - SidebarFormHeader, - SidebarFormFooter, - SidebarFormMixin + sidebarFormHeader, + sidebarFormFooter, + sidebarFormMixin, + sidebarFormStore } diff --git a/package.json b/package.json index d440e49..7355c1d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@tiny-components/sidebar-form", - "version": "1.2.0", + "version": "1.2.1", "description": "sidebar to handle forms", "repository": { "type": "git", diff --git a/webpack.3.mix.js b/webpack.3.mix.js deleted file mode 100644 index 55a2583..0000000 --- a/webpack.3.mix.js +++ /dev/null @@ -1,86 +0,0 @@ -const mix = require('laravel-mix') -const path = require('path') - -require('laravel-mix-purgecss') - -// plugins -const SvgSpritemapPlugin = require('svg-spritemap-webpack-plugin') - -/* - |-------------------------------------------------------------------------- - | Mix Asset Management - |-------------------------------------------------------------------------- - | - | Mix provides a clean, fluent API for defining some Webpack build steps - | for your Laravel applications. By default, we are compiling the CSS - | file for the application as well as bundling up all the JS files. - | - */ - - -mix.webpackConfig({ - module: { - rules: [{ - test: /\.riot$/, - use: [{ - loader: '@riotjs/webpack-loader', - options: { - hot: false - } - }] - } - ]}, - plugins: [ - new SvgSpritemapPlugin([ - 'node_modules/@tiny-components/plain-ui/src/icons/mono-icons/svg/*.svg', - 'src/icons/brands/*' - ], { - output: { - filename: 'symbol-defs.svg', - chunk: { - keep: true - }, - svgo: { - plugins: [{ - name: 'convertStyleToAttrs', - active: true - },{ - name: 'removeStyleElement', - active: true - }, { - name: 'removeAttrs', - params: { - attrs: 'fill' - } - }] - } - }, - sprite: { - prefix: 'icon-' - } - }) - ] -}) - -mix - .setPublicPath('./example') - .js('src/example.js', 'example') - .sass('src/example.scss', 'example') - .purgeCss({ - extend: { - safelist: [ - /sidebar/ - ], - content: [ - path.join(__dirname, 'src/**.riot'), - path.join(__dirname, 'example/index.html') - ] - } - }) - .options({ - terser: { - extractComments: false, - }, - processCssUrls: false - }) - .copyDirectory('node_modules/@tiny-components/plain-ui/src/fonts/IBM*', 'example')