Commit 7f7ac97b authored by Anthon Holmqvist's avatar Anthon Holmqvist Committed by Anthon Holmqvist
Browse files

feat: ongoing development

parent 48226f73
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
node_modules
lib
dist
 No newline at end of file
+28 −0
Original line number Diff line number Diff line
<template>
  <div>
    <button :type="type">
      <!-- @slot button content, i.e. click me! -->
      <slot />
    </button>
  </div>
</template>

<script>
export default {
  name: "EButton",
  props: {
    type: {
      type: String,
      default: ""
    }
  }
};
</script>

<!-- htmlvalidate tag should always written as JSON -->
<htmlvalidate>
{
  "flow": true,
  "interactive": true
}
</htmlvalidate>

src/examples/README.md

0 → 100644
+7 −0
Original line number Diff line number Diff line
# Examples

running examples

```bash
npx webpack --config ./src/examples/webpack.config.js
```
+16 −0
Original line number Diff line number Diff line
const path = require("path");

module.exports = {
  entry: path.resolve(__dirname, "EButton.vue"),
  module: {
    rules: [
      {
        test: /\.vue$/,
        loader: path.resolve(
          __dirname,
          "../../lib/html-validate-vue-webpack-loader.js"
        )
      }
    ]
  }
};
+16 −0
Original line number Diff line number Diff line
import { Configuration } from "webpack";
import htmlValidateVueWebpackLoader from './html-validate-vue-webpack-loader';

export const htmlValidateVueWebpackConfig: Configuration = {
  module: {
    rules: [
      {
        test: /\.vue$/,
        loader: htmlValidateVueWebpackLoader,
      }
    ]
  }

};

export default htmlValidateVueWebpackConfig;
 No newline at end of file
Loading