Commit 6f46176e authored by Derek Nutile's avatar Derek Nutile

Initialize npm and webpack

parent 32196acf
Pipeline #48972547 passed with stage
in 30 seconds
This diff is collapsed.
{
"name": "dereknutile.gitlab.io",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"dev": "webpack",
"build": "cross-env NODE_ENV=production webpack",
"watch": "webpack --watch"
},
"repository": {
"type": "git",
"url": "git+https://gitlab.com/dereknutile/dereknutile.gitlab.io.git"
},
"keywords": [],
"author": "",
"license": "ISC",
"bugs": {
"url": "https://gitlab.com/dereknutile/dereknutile.gitlab.io/issues"
},
"homepage": "https://gitlab.com/dereknutile/dereknutile.gitlab.io#readme",
"devDependencies": {
"autoprefixer": "^9.4.8",
"axios": "^0.18.0",
"babel-core": "^6.26.3",
"babel-loader": "^8.0.5",
"cross-env": "^5.2.0",
"css-loader": "^2.1.0",
"extract-loader": "^3.1.0",
"file-loader": "^3.0.1",
"node-sass": "^4.11.0",
"postcss-cli": "^6.1.2",
"postcss-loader": "^3.0.0",
"sass-loader": "^7.1.0",
"vue": "^2.6.7",
"webpack": "^4.29.5",
"webpack-cli": "^3.2.3"
}
}
module.exports = {
plugins: {
'autoprefixer': {}
}
}
const path = require('path');
module.exports = {
mode: process.env.NODE_ENV === 'production' ? 'production' : 'development',
entry: ['./src/app.js', './src/scss/app.scss'],
output: {
path: path.resolve(__dirname, 'dist'),
filename: 'js/app.js',
},
module: {
rules: [
{
test: /\.scss$/,
use: [
{
loader: 'file-loader',
options: {
name: 'css/[name].css',
}
},
{
loader: 'extract-loader'
},
{
loader: 'css-loader?-url'
},
{
loader: 'postcss-loader'
},
{
loader: 'sass-loader'
}
]
}
]
}
};
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment