Skip to content

Commit

Permalink
fix: make dev env works
Browse files Browse the repository at this point in the history
  • Loading branch information
marcos-hotmart committed Jan 31, 2018
1 parent 612a63d commit a8e3978
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 8 deletions.
2 changes: 1 addition & 1 deletion build/docs/webpack.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const componentExampleLoader = require.resolve('../loaders/component-example-loa
const webpackConfig = {
entry: {
app: [
'@babel/polyfill',
'babel-polyfill',
'./docs/app/index.js',
'./build/docs/offline.js'
]
Expand Down
2 changes: 1 addition & 1 deletion build/loaders/component-example-loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const prettier = require('prettier')
const path = require('path')
const compiler = require('vue-template-compiler')
const { resolvePath } = require('../config')
const { transform } = require('@babel/core')
const { transform } = require('babel-core')
const transpile = code => transform(code).code
const { getIndentedSource } = require('../../docs/app/mixins/codeSource')

Expand Down
2 changes: 1 addition & 1 deletion build/local/webpack.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export default {
devtool: 'cheap-module-eval-source-map',
entry: {
docs: [
'@babel/polyfill',
'babel-polyfill',
'./docs/app/index.js',
'./build/local/client'
]
Expand Down
6 changes: 1 addition & 5 deletions docs/app/store/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,12 @@ import Vuex from 'vuex'
import state from './state'
import mutations from './mutations'
import actions from './actions'
import createLogger from 'vuex/dist/logger'

Vue.use(Vuex)

const debug = process.env.NODE_ENV !== 'production'

export default new Vuex.Store({
state,
mutations,
actions,
strict: debug,
plugins: debug ? [createLogger()] : []
strict: process.env.NODE_ENV !== 'production'
})

0 comments on commit a8e3978

Please sign in to comment.