Skip to content

Files

Latest commit

 

History

History

Weather

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

weather

A Vue.js project

Build Setup

# install dependencies
npm install

npm i element-ui --save

npm install css-loader --save-dev

npm install style-loader --save-dev

npm install url-loader --save-dev

npm install vue-resource --save-dev

# serve with hot reload at localhost:8080
npm run dev

# build for production with minification
npm run build

Webpack setting

module:{
    {
        test: /\.css$/,loader: 'style-loader!css-loader'},
    {
        test: /\.(gif|jpg|png|woff|svg|eot|ttf)\??.*$/,
        loader: 'url-loader?limit=50000&name=[path][name].[ext]'
    }
}

For detailed explanation on how things work, consult the docs for vue-loader.