webpack vuejs prod/dev mode final
This commit is contained in:
parent
f8d82b8c8f
commit
efd7bdaa51
|
@ -10,12 +10,14 @@ const utils = require('./utils')
|
|||
const themePath = 'web/themes/custom/materiotheme'
|
||||
const langPath = 'web/sites/default/files/lang'
|
||||
|
||||
const isDev = process.env.NODE_ENV === 'development';
|
||||
|
||||
module.exports = {
|
||||
resolve: {
|
||||
extensions: ['.js', '.vue', '.json'],
|
||||
alias: {
|
||||
'vue': 'vue/dist/vue.min.js',
|
||||
// 'vue' : isDev ? 'vue/dist/vue.js' : 'vue/dist/vue.min.js',
|
||||
// 'vue': 'vue/dist/vue.js',
|
||||
'vue' : isDev ? 'vue/dist/vue.js' : 'vue/dist/vue.min.js',
|
||||
'theme': utils.resolve(themePath),
|
||||
'vuejs': utils.resolve(themePath+'/vuejs'),
|
||||
'assets': utils.resolve(themePath+'/assets'),
|
||||
|
|
Loading…
Reference in New Issue