This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "id": 10282110282, | |
| "createdAt": 1505356557019, | |
| "updatedAt": 1603032029393, | |
| "category": "thailand", | |
| "subCategory": "krabi", | |
| "title": "13 Affordable Romantic Fine Dining Restaurants in jakarta with Main Under $15", | |
| "author": { | |
| "name": "sten ivan", | |
| "profession": "travel writer", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const path = require('path'), | |
| webpack = require('webpack'), | |
| CleanWebpackPlugin = require('clean-webpack-plugin'), | |
| HtmlWebpackPlugin = require('html-webpack-plugin'), | |
| ExtractTextPlugin = require('extract-text-webpack-plugin'); | |
| const extractPlugin = new ExtractTextPlugin({ filename: './assets/css/app.css' }); | |
| const config = { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const path = require('path'); | |
| const CleanWebpackPlugin = require('clean-webpack-plugin'); | |
| const HtmlWebpackPlugin = require('html-webpack-plugin'); | |
| const ExtractTextPlugin = require('extract-text-webpack-plugin'); | |
| const webpack = require('webpack'); | |
| const extractPlugin = new ExtractTextPlugin({ filename: './assets/css/app.css' }); | |
| const config = { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const path = require('path'); | |
| const CleanWebpackPlugin = require('clean-webpack-plugin'); | |
| const HtmlWebpackPlugin = require('html-webpack-plugin'); | |
| const ExtractTextPlugin = require('extract-text-webpack-plugin'); | |
| const webpack = require('webpack'); | |
| const extractPlugin = new ExtractTextPlugin({ filename: './assets/css/app.css' }); | |
| const config = { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const path = require('path'); | |
| const CleanWebpackPlugin = require('clean-webpack-plugin'); | |
| const HtmlWebpackPlugin = require('html-webpack-plugin'); | |
| const config = { | |
| context: path.resolve(__dirname, 'src'), | |
| entry: { | |
| // removing 'src' directory from entry point, since 'context' is taking care of that | |
| app: './app.js' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
| { | |
| "presets": ["env"] | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const path = require('path'); | |
| const CleanWebpackPlugin = require('clean-webpack-plugin'); | |
| const config = { | |
| context: path.resolve(__dirname, 'src'), | |
| entry: { | |
| // removing 'src' directory from entry point, since 'context' is taking care of that | |
| app: './app.js' | |
| }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const path = require('path'); | |
| const CleanWebpackPlugin = require('clean-webpack-plugin'); | |
| const config = { | |
| context: path.resolve(__dirname, 'src'), | |
| entry: { | |
| // removing 'src' directory from entry point, since 'context' is taking care of that | |
| app: './app.js' | |
| }, | |
| output: { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "name": "project_name", | |
| "version": "1.0.0", | |
| "description": "Webpack 3 quickstarter", | |
| "main": "app.js", | |
| "scripts": { | |
| "build": "./node_modules/.bin/webpack", | |
| "build:prod": "./node_modules/.bin/webpack -p", | |
| "watch": "./node_modules/.bin/webpack --watch", | |
| "dev": "./node_modules/.bin/webpack-dev-server" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const path = require('path'); | |
| const config = { | |
| context: path.resolve(__dirname, 'src'), | |
| entry: { | |
| // removing 'src' directory from entry point, since 'context' is taking care of that | |
| app: './app.js' | |
| }, | |
| output: { | |
| path: path.resolve(__dirname, 'dist'), |
NewerOlder