Comments (2)
here's the updated configuration that worked for me, I can submit PR if you d'like
package.json
{
"name": "VuejsStarterKit",
"description": "A Vue.js project",
"author": "Metin Seylan <[email protected]>",
"private": true,
"scripts": {
"dev": "webpack-dev-server --open --inline --hot",
"build": "cross-env NODE_ENV=production webpack --progress --hide-modules"
},
"dependencies": {
"bootstrap": "^4.0.0-alpha.4",
"vue": "^2.0.1",
"vue-resource": "^1.0.3",
"vue-router": "^2.0.0",
"vue-server-renderer": "^2.0.1",
"vuex": "^2.0.0",
"vuex-router-sync": "^3.0.0",
"accounting": "^0.4.1",
"croppie": "^2.3.0",
"flag-icon-css": "^2.4.0",
"gravatar-url": "^1.1.0",
"idle-timeout": "^0.1.0",
"jquery": "^3.1.0",
"lodash": "^4.14.0",
"moment": "^2.14.1",
"moment-timezone": "^0.5.5",
"tether": "^1.3.7"
},
"devDependencies": {
"babel-core": "^6.21.0",
"babel-loader": "^6.2.10",
"babel-preset-es2015": "^6.18.0",
"cross-env": "^3.0.0",
"css-loader": "^0.25.0",
"eslint": "^3.12.2",
"eslint-config-airbnb": "^13.0.0",
"eslint-loader": "^1.6.1",
"eslint-plugin-import": "^2.2.0",
"eslint-plugin-jsx-a11y": "^2.0.2",
"eslint-plugin-react": "^6.8.0",
"file-loader": "^0.9.0",
"json-loader": "^0.5.4",
"node-sass": "^3.10.1",
"resolve-url-loader": "^1.6.0",
"sass-loader": "^4.0.2",
"url-loader": "^0.5.7",
"vue-loader": "^10.0.0",
"vue-server-renderer": "^2.0.2",
"vue-template-compiler": "^2.1.8",
"webpack": "2.1.0-beta.26",
"webpack-dev-server": "^2.1.0-beta.11"
}
}
webpack.config.js
var path = require('path')
var webpack = require('webpack')
module.exports = {
entry: ['./src/main.js'],
output: {
path: path.resolve(__dirname, './dist'),
publicPath: '/dist/',
filename: 'build.js'
},
module: {
rules: [
{
test: /\.js$/,
loader: 'babel-loader',
exclude: /node_modules/
},
{
test: /\.json$/,
loader: 'json-loader'
},
{
test: /\.(png|jpg|gif|svg)$/,
loader: 'file-loader',
query: {
name: 'img/[name].[ext]?[hash]'
}
},
{
test: /\.vue$/,
loader: 'vue-loader',
options: {
loaders: {
js: 'babel-loader!eslint-loader',
css: 'sass-loader'
}
}
}
]
},
devServer: {
historyApiFallback: true,
noInfo: true
},
devtool: '#eval-source-map'
}
if (process.env.NODE_ENV === 'production') {
module.exports.devtool = '#source-map'
// http://vue-loader.vuejs.org/en/workflow/production.html
module.exports.plugins = (module.exports.plugins || []).concat([
new webpack.DefinePlugin({
'process.env': {
NODE_ENV: '"production"'
}
}),
new webpack.optimize.UglifyJsPlugin({
compress: {
warnings: false
}
})
])
}
++ add .eslintrc with the following
{
"root": true,
"extends": "airbnb",
"globals": {
"wp": true
},
"env": {
"amd": true,
"browser": true,
"jquery": true,
"node": true
},
"parser": "babel-eslint"
}
from vuejsstarterkit.
@shershen08 Please submit PR so the author can merge. Have same issue, which i am trying VueJS aswell.
I applied your changes, and re-run npm install
and all works now.
Thanks!!
from vuejsstarterkit.
Related Issues (2)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vuejsstarterkit.