const path = require('path');
const ExtractTextPlugin = require('extract-text-webpack-plugin');
const HtmlWebpackPlugin = require('html-webpack-plugin');
module.exports = {
entry: { main: './src/index.js' },
output: {
path: path.resolve(__dirname, 'dist'),
filename: 'main.js'
},
module: {
rules: [
{
test: /\.js$/,
exclude: /node_modules/,
use: {
loader: "babel-loader"
}
},
{
test: /\.sass$/,
use: ExtractTextPlugin.extract(
{
fallback: 'style-loader',
use: [
{
loader: 'css-loader',
sourceMap: true
},
{
loader: 'postcss-loader',
sourceMap: true
},
{
loader: 'sass-loader',
sourceMap: true
}
]}
)
}
]
},
plugins: [
new ExtractTextPlugin({filename: 'style.css'}),
new HtmlWebpackPlugin({
inject: false,
hash: true,
template: './src/index.html',
filename: 'index.html'
})
]
};
terrier
american
australian
bedlington
success: function (data) {
$.each(data.message,function (key,value) {
$('#dog_item-list').append('<li>' + key + '|' + value + '</li>');
});
springer|english
stbernard|
terrier|american,australian,bedlington,border,dandie,fox,irish,kerryblue,lakeland,norfolk,norwich,patterdale,scottish,sealyham,silky,tibetan,toy,westhighland,wheaten,yorkshire
{
name: [Вася, Петя, Саша]
}