This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// code sample to updated in /src/main.js | |
import Button from './components/Button.vue'; | |
const components = { | |
myButton: Button | |
} | |
export default components |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<div id="app"> | |
<my-button text='Hello Vue Expert !'> | |
</my-button> | |
</div> | |
</template> | |
<script> | |
// const libCss = require('vue-library-demo-medium/dist/cssfile.css') | |
import vueLibrary from 'vue-library-demo-medium'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"manifest_version": 2, | |
"name": "Vue Extension", | |
"version": "1.0.0", | |
"description": "This is a sample description", | |
"short_name": "Short Sample Name", | |
"permissions": ["activeTab", "declarativeContent", "storage", "<all_urls>"], | |
"chrome_url_overrides" : { | |
"newtab": "newTab.html" | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Page Title</title> | |
</head> | |
<body> | |
<div id="vue_container"> | |
<h1>This is a Heading</h1> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const path = require('path'); | |
const CopyPlugin = require('copy-webpack-plugin'); | |
const ExtensionReloader = require('webpack-extension-reloader'); | |
module.exports = { | |
context: path.resolve(__dirname, 'src'), | |
entry: { | |
'newTab': './newTab.js', | |
'background': './background.js' | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Vue from 'vue'; | |
const ExtensionContainer = require('./Index.vue').default; | |
window.vueInstance = new Vue({ | |
el: `#vue_container`, | |
render: (h) => h(ExtensionContainer), | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<div id="extension_content"> | |
Vue Content | |
</div> | |
</template> | |
<script> | |
export default { | |
created(){ | |
console.log('Vue Component Initialised') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const path = require('path'); | |
const CopyPlugin = require('copy-webpack-plugin'); | |
const ExtensionReloader = require('webpack-extension-reloader'); | |
const MiniCssExtractPlugin = require('mini-css-extract-plugin'); | |
const { VueLoaderPlugin } = require('vue-loader'); | |
module.exports = { | |
context: path.resolve(__dirname, 'src'), | |
entry: { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "vue-extension-medium-blog", | |
"version": "1.0.0", | |
"main": "index.js", | |
"repository": "https://github.com/AnandShiva/vue-extension-medium-blog.git", | |
"author": "Anand Kumar <anandkumar.shiva@gmail.com>", | |
"license": "MIT", | |
"scripts": { | |
"build": "webpack --mode='development' --watch" | |
}, |
OlderNewer