Created
July 23, 2020 11:18
-
-
Save jspuij/cfe3954f5870924a9fd5528cbcc764e5 to your computer and use it in GitHub Desktop.
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": "blabla", | |
"version": "1.0.0", | |
"description": "", | |
"main": "index.js", | |
"scripts": { | |
"dev": "npm run development", | |
"development": "cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js", | |
"watch": "npm run development -- --watch", | |
"watch-poll": "npm run watch -- --watch-poll", | |
"hot": "cross-env NODE_ENV=development node_modules/webpack-dev-server/bin/webpack-dev-server.js --inline --hot --config=node_modules/laravel-mix/setup/webpack.config.js", | |
"prod": "npm run production", | |
"production": "cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --no-progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js" | |
}, | |
"devDependencies": { | |
"cross-env": "^7.0", | |
"laravel-mix": "^5.0.4", | |
"resolve-url-loader": "^3.1.1", | |
"sass": "^1.26.5", | |
"sass-loader": "^8.0.2", | |
"vue-template-compiler": "^2.6.11" | |
}, | |
"keywords": [], | |
"author": "", | |
"license": "ISC", | |
"dependencies": { | |
"ts-loader": "^7.0.5", | |
"typescript": "^3.9.3" | |
}, | |
"-vs-binding": { "ProjectOpened": [ "dev" ] } | |
} |
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 mix = require('laravel-mix'); | |
/* | |
|-------------------------------------------------------------------------- | |
| Mix Asset Management | |
|-------------------------------------------------------------------------- | |
| | |
| Mix provides a clean, fluent API for defining some Webpack build steps | |
| for your Laravel application. By default, we are compiling the Sass | |
| file for the application as well as bundling up all the JS files. | |
| | |
*/ | |
mix | |
.ts("ts/index.ts", "wwwroot/js") | |
.sass('scss/main.scss', 'wwwroot/css') | |
.webpackConfig({ | |
module: { | |
rules: [ | |
{ | |
test: /\.tsx?$/, | |
loader: "ts-loader", | |
exclude: /node_modules/ | |
} | |
] | |
}, | |
resolve: { | |
extensions: ["*", ".js", ".jsx", ".ts", ".tsx"] | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment