diff --git a/frontend/build/webpack.base.conf.js b/frontend/build/webpack.base.conf.js index 6920efe..932e7df 100644 --- a/frontend/build/webpack.base.conf.js +++ b/frontend/build/webpack.base.conf.js @@ -24,6 +24,7 @@ module.exports = { alias: { 'vue$': 'vue/dist/vue.esm.js', '@': resolve('src'), + 'semantic': path.resolve(__dirname, '../node_modules/semantic-ui-css/semantic.min.js') } }, module: { @@ -74,3 +75,11 @@ module.exports = { ] } } + +new webpack.ProvidePlugin({ + // jquery + $: 'jquery', + jQuery: 'jquery', + // semantic-ui + semantic: 'semantic-ui-css', +}) diff --git a/frontend/index.html b/frontend/index.html index b3a11d3..25c8d57 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -7,8 +7,6 @@ Books - -
diff --git a/frontend/package.json b/frontend/package.json index fc641d8..5271720 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -12,6 +12,8 @@ }, "dependencies": { "axios": "^0.17.0", + "jquery": "^3.2.1", + "semantic-ui-css": "^2.2.12", "vue": "^2.5.2", "vue-awesome": "^2.3.4", "vue-paginate": "^3.5.1", diff --git a/frontend/src/components/Books.vue b/frontend/src/components/Books.vue index 283940d..e40934e 100644 --- a/frontend/src/components/Books.vue +++ b/frontend/src/components/Books.vue @@ -1,10 +1,12 @@