Skip to content

Commit 2ee1954

Browse files
committed
add purify
1 parent cb47fc4 commit 2ee1954

File tree

4 files changed

+147
-5
lines changed

4 files changed

+147
-5
lines changed

package-lock.json

Lines changed: 145 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@
8686
"mocha": "4.0.1",
8787
"node-sass": "4.5.3",
8888
"phantomjs-prebuilt": "2.1.15",
89+
"purifycss": "^1.2.6",
8990
"purifycss-webpack": "0.7.0",
9091
"recursive-readdir": "2.2.1",
9192
"rimraf": "2.6.2",

src/theme/Category-Newsletter.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import { mapGetters, mapActions } from 'vuex'
2020
import VwpSubcategory from 'components/vwpSubcategory.vue'
2121
const fetchInitialData = (store, route) => {
2222
route.params.page = route.params.page || 1
23-
return store.dispatch(`category/getCategory`, { parentId: 28 })
23+
return store.dispatch(`category/getCategory`, {parentId: 28})
2424
}
2525
export default {
2626
name: 'ThemePageCategoryNewsletter',

src/vuex/modules/category/actions.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,6 @@ const getCategory = ({commit, state, dispatch}, params) => {
2222
params.page = 1
2323
}
2424

25-
if (typeof window !== 'undefined' && state.single && state.single.slug !== params.page) {
26-
commit('RESET_CATEGORIES')
27-
}
28-
2925
return new Promise((resolve, reject) => {
3026
wordpressService.getCategory(null, params.categorySlug, params.parentId).then((responseCategories) => {
3127
state.page = params.page

0 commit comments

Comments
 (0)